# Installing Composer Globally on CentOS 7

First you need to make sure your system is up-do-date, for that you need to run

yum -y update

Download and install Composer by executing the following command:

curl -sS https://getcomposer.org/installer | php

Once the process completes, you can make the ‘composer.phar’ file executable by running the following command:

chmod +x composer.phar

Now use the following commands to make composer available globally for all users in your system, which can be used for all php applications on that system:

mv composer.phar /usr/local/bin/composer

You can also check the version of composer by running bellow command:

composer -V

And you are ready to go.