1 下载composer.phar
curl -sS https://getcomposer.org/installer | php
2 设置全局调用
mv composer.phar /usr/local/bin/composer chmod +x composer
3 测试查看安装情况
composer about