Composer is a reliance management tool for PHP like npm for nodejs and pack for ruby. Using composer tool we can characterize required libraries for our project and install with PHP composer in single command. We don’t have to search for every library exclusively to install every time.
This tutorial will assist you with installing PHP Composer on CentOS, RHEL and Fedora working frameworks.
To install php composer on Redhat based systems. We just need to run the following command from the terminal:
# cd /tmp # curl -sS https://getcomposer.org/installer | php
Now use the following commands to make composer available globally for all clients in your system, which can be utilized for all php applications on that system.
mv composer.phar /usr/local/bin/composer $ chmod +x /usr/local/bin/composer
You can also check the version of composer by running below command:
# composer -V
You can clear composer cache using following command:
# composer clear-cache