In the code json
below I can only clone the PHPMailer dependencies from the repository if the CpanelInc / xmlapi-php url is not set to repositories in código
, when I go to https url or ssh 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