Linux下安装composer方法

下载composer
curl -sS https://getcomposer.org/installer | /usr/local/php/bin/php

将composer.phar文件移动到bin目录以便全局使用composer命令
mv composer.phar /usr/local/php/bin/composer
ln -s /usr/local/php/bin/php /usr/bin/php

切换国内源
composer config -g repo.packagist composer https://packagist.phpcomposer.com

发表评论