composer/composer — pull request #115 by wwwdata (2011-11-17 14:30:42+00:00)
Title: It is possible to set an "install-dir" option for a package now

I was not satisfied with the target-dir option because you could customize
the path behind the vendor/ directory.

This let's you completely customize the path needed for your custom
package. So you can specify paths directly on top level and are not forced
to install your packages under the vendor/ directory.

Example:

{
"name": "my-project",
"version": "1.0.0",
"repositories": {
"MyRepo": {
"package": {
"name": "mypackage",
"version": "1.0",
"install-dir": "lib/src/mypackage"
"source": {
"url": "https://github.com/awesomepackages/mypackage.git",
"type": "git",
"reference": "some-tag"
}
}
}
},
"require": {
"mypackage" : "1.0"
}
}