全局安装composer方法
- 下载 composer.phar
curl -sS https://getcomposer.org/installer | php
- 将composer.phar文件移动到bin目录以便全局使用composer命令
mv composer.phar /usr/local/bin/composer
- 切换国内源
composer config -g repo.packagist composer https://packagist.phpcomposer.com
转载 https://www.cnblogs.com/lamp01/p/6934257.html
已迁移至 http://www.xstnet.com/article-89.html