1
0
Fork 0

Changing vendor bin configuration

pull/223/head
Beau Simensen 2012-01-18 22:54:59 -08:00
parent 4748e1dacb
commit 1b908d4f80
1 changed files with 22 additions and 0 deletions

View File

@ -86,3 +86,25 @@ of bins in a special way when run in a Windows environment:
Packages that need to support workflows that may not include Composer
are welcome to maintain custom `.bat` files. In this case, the package
should **not** list the `.bat` file as a bin as it is not needed.
## Can vendor bins be installed somewhere other than vendor/bin?
Yes, there are two ways that an alternate vendor bin location can be specified.
* Setting the `vendor-dir` configuration setting in `composer.json`
* Setting the environment variable `COMPOSER_VENDOR_DIR`
An example of the former looks like this:
```json
{
"config": {
"vendor-dir": "scripts"
}
}
```
Running `composer install` for this `composer.json` will result in
all of the vendor bins being installed in `scripts/` instead of
`vendor/bin/`.