0
In the code json
below I can only clone from the repository the dependencies of Phpmailer, if the url of the Cpanelinc/xmlapi-php are not set in repositories in the código
, when if https or ssh url generates the following error:
[Composer\Repository\InvalidRepositoryException]
No valid composer.json was found in any branch or tag of [email protected]:Cpa
nelInc/xmlapi-php.git, could not load a package from it.
Composer.json
{
"name": "site.com.br",
"authors": [
{
"name" : "Coringa",
"email" : "[email protected]"
}
],
"minimum-stabilty": "alpha",
"repositories": [
{
"url": "[email protected]:CpanelInc/xmlapi-php.git",
"type": "git"
}
],
"require": {
"php": ">=5.6",
"phpmailer/phpmailer": "~5.2",
"CpanelInc/xmlapi-php": "dev-master"
},
"autoload": {
"psr-4": {
"Vendor\\": "vendor/",
"Lib\\" : "src/Lib/",
"Email\\": "src/Email/"
}
},
"config": {
"vendor-dir": "vendor"
}
}
I followed this tutorial