I'd like to use the adldap/adldap library in my PHP based project. While the maintainer of this package has not added this package to packagist, they have included a composer.json
file. So, normally, I'd just add the following my MY composer.json
, and go about my day.
"repositories": [
{
"type": "vcs",
"url": "https://github.com/adldap/adLDAP"
}],
"require": {
/* my other packages */
"adldap/adldap":"4.04"
},
However, this won't work, because adldap/adldap
is already claimed by a different project in packagist, and composer always assumes I want the packagist package. (Making things even more complicated, the packagist package is a fork of the original project, and a fork that isn't accepting upstream changes).
Is there a way to tell composer to prefer the version from the configured VCS repository? Or am I stuck forking the package myself, changing its name, and pointing composer to my fork? (or one of the other forks maintained to work around this very issue?)