Install Composer on CentOS

First you have to go to the /tmp directory

load the composer.phar file

Move it to /usr/local/bin/

Now you can to use the command composer globally.

How to get instance in PHP