Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Composer bin directory to $PATH #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kristoftorfs
Copy link

Some Composer packages include executable files. The most convenient way to use these packages is to install them globally, in which case the executables (or a symlink to it) are placed in ~/.composer/vendor/bin.

In most cases these are scripts that are used during development, and by adding this directory to the PATH environment var you don't need to create symlinks in /usr/bin or type the full path to the executable when you want to run it.

E.g. documentation for the Zephir compiler:

For global installation via composer you can use composer global require. Do not forget add ~/.composer/vendor/bin into your $PATH.

The Composer documentation for vendor binaries is located at https://getcomposer.org/doc/articles/vendor-binaries.md.

@naxhh
Copy link
Contributor

naxhh commented Apr 25, 2016

Thanks @kristoftorfs this is much more easy to understand.

@debo
Copy link
Member

debo commented Apr 25, 2016

@kristoftorfs wouldn't then be the recommended way to do so at application level in the project composer.json or at least that's what I generally do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants