I'm new with Composer, I've already followed https://getcomposer.org/doc/05-repositories.md#subversion-options structure to create example using Composer.
Howerver, I'm getting following error message with Composer and SVN when using command composer install:
[InvalidArgumentException]
No driver found to handle VCS repository http://myexamplesvn/MyCommon-1.0/.....
Here is my setting:
"repositories": [
{
"type": "vcs",
"url": "http://myexamplesvn/MyCommon-1.0/"
}
],
"require": {
"my-common/my-common":"*"
}
Could you provide me any idea or suggestion?
I was having a similar issue with a github repo when using the HTTPS address:
{
"type": "vcs",
"url": "https://github.com:<user>/<repo>"
}
but using the SSH .git
path worked for me:
{
"type": "vcs",
"url": "[email protected]:<user>/<repo>.git"
}
If the repo that you're using doesn't have a composer.json
then a composer.json
with code like this might work:
"require": {
"<user>/<repo>": "dev-<branch>"
},
"repositories": [
{
"type": "package",
"package": {
"name": "<user>/<repo>",
"version": "dev-<branch>",
"dist": {
"url": "https://github.com/<user>/<repo>/archive/<branch>.zip",
"type": "zip"
}
}
}
]
If your pulling package locally, make sure to
git init
and commit
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With