Composer-Activate
Composer allows packages to provide command line scripts called "vendor
binaries" to pass along to a user who installs the package. By default these
scripts are available in the vendor/bin
directory., (*1)
Composer-Activate provides a script that will add the vendor/bin
directory
to your shell's PATH
so that you can call other vendor binary scripts
without the awkward vendor/bin/
prefix., (*2)
Installation
Composer-Activate is available on Packagist (bd808/composer-activate) and
is installable via Composer., (*3)
{
"require": {
"bd808/composer-activate": "dev-master"
}
}
Usage
After installing composer-activate, source vendor/bin/composer_activate.bash
in your shell:, (*4)
$ . vendor/bin/composer_activate.bash
To deactivate:, (*5)
$ composer_deactivate