1、下载composer.phar
curl -sS https://getcomposer.org/installer | php
2、把composer.phar移动到环境下让其变成可执行
mv composer.phar /usr/local/bin/composer
3、换中国镜像
composer config -g repo.packagist composer https://packagist.phpcomposer.com
本文共 289 字,大约阅读时间需要 1 分钟。
1、下载composer.phar
curl -sS https://getcomposer.org/installer | php
2、把composer.phar移动到环境下让其变成可执行
mv composer.phar /usr/local/bin/composer
3、换中国镜像
composer config -g repo.packagist composer https://packagist.phpcomposer.com
转载于:https://www.cnblogs.com/gentlemanwuyu/p/11433738.html