Install Composer
Setting up the environment for php
vim /etc/profile
export PATH="$PATH:/usr/local/php/bin"
Download and install composer
cd /mnt
curl -sS https://getcomposer.org/installer | php
#curl -sS https://getcomposer.org/installer | /usr/local/php/bin/php
mv composer.phar /usr/local/bin/composer
Change composer mirror source
composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
View installation
composer