I\'ve just started using composer with PHPStorm \'cause I\'m bored of downloading dependencies from github manually. But there are some things I can\'t understand.
Compo
"config": {
"vendor-dir": "path/to/wherever"
},
in your composer.json file
The documentation states that you can do this:
{
"extra": {
"installer-paths": {
"sites/example.com/modules/{$name}": ["vendor/package"]
}
}
}
This question is answered here.
Vendor directory is a Composer convention. Good programming practice is to prefer convention over configuration. You can reference you files and classes in a number of ways with Composer.