为情所困2017-05-16 13:33:43
If it is blocked, you can install it by overcoming the wall, or use domestic mirroring.
First make sure php is installed, then follow the steps below.
//下载安装脚本 - composer-setup.php - 到当前目录
php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"
//执行安装过程。
php composer-setup.php
//删除安装脚本
php -r "unlink('composer-setup.php');"
Replace the full Packagist China image and modify the global configuration file of composer
composer config -g repo.packagist composer https://packagist.phpcomposer.com
过去多啦不再A梦2017-05-16 13:33:43
centos I don’t know if there is a composer in the yum source. You can try it