(Private package requirement)
{
"repositories": [
{
"type": "vcs",
"url": "[email protected]:name/lib-name.git"
}
]
}
After that, the Composer could install packages via Packagist and your VCS.
First, check the current user has the ssh-key permission to access VCS git-ssh repositories.
Then run Composer require for VCS git package with --no-interaction
:
composer -n require name/lib-name
--no-interaction
would skipauth.json
for VCS repositories such as GitLab API, and use giving url to access instead.