I want to add a new package which is not at packagist, it's a local or non-public repository. I know how to this in the composer.json
. For example:
"repositories": [
{
"type": "vcs",
"url": "https://bitbucket.org/xxxx/xxxxx.git"
}
],
"require": {
"xxxx/xxxxx": "dev-master"
},
But I want to do this from the command line so that I can add this non-public repositories in a provision file. Packages registered at Packagist I can add with:
composer require ....
But how to handle this with repositories not registered at Packagist?
composer require package-name:dev-branchname
. – Samala