1.cd /usr/bin
2.sudo curl -s https://getcomposer.org/installer | sudo php
3.sudo chmod a+x composer.phar
4.mv composer.phar /usr/local/bin/composer
5.composer -v