September 2017
Intermediate to advanced
244 pages
6h 44m
English
To install and access Composer globally from anywhere, we need to place it in a directory that is added in the system's PATH directory.
To do that, we can run the following command to move composer.phar to a place from where we can access it globally:
sudo mv composer.phar /usr/local/bin/Composer
Now you will simply be able to access Composer by running command, composer and it will work; nothing else will be required. So, if you say:
composer -V
It will return something like the following:
composer version 1.4.2 2017-05-17 08:17:52
You can run this command from anywhere, since we have Composer installed globally.
Read now
Unlock full access