Skip to content
Advertisement

How to run composer from anywhere?

I have just installed composer in my /usr/bin folder, so when from that folder I run php composer.phar I get the help info about composer. But, when I try to run the same from other folder I get Could not open input file: composer.phar.

How to call php composer.phar from every where without problems?

Advertisement

Answer

composer.phar can be ran on its own, no need to prefix it with php. This should solve your problem (being in the difference of bash’s $PATH and php’s include_path).

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement