I have this definition:
{
"repositories": [
{
"type": "package",
"package": {
"name": "symfony/sfGuardPlugin",
"version": "4.0.2",
"dist": {
"url": "http://plugins.symfony-project.org/get/sfGuardPlugin/sfGuardPlugin-4.0.2.tgz",
"type": "tar"
}
}
}
],
"require": {
"symfony/sfGuardPlugin": "4.0.*"
}
}
I am using Symfony 1, and I’d like to install them on plugins/sfGuardPlugin/. How do I specify this?
It seems that you can define the
vendordir to be something else (pluginsin your case):Then, you might rename the package name to not have a level dir inside, like:
So, your
composer.jsonshould look like this:Edit
Using this configuration, you will get the path (which is of course not good for symfony):
I found a workaround with this
composer.json: