Linux安装composer
- 下载composer
curl -sS https://getcomposer.org/installer | php
- 将composer.phar文件移动到 /usr/local/bin目录以便全局使用composer命令
mv composer.phar /usr/local/bin/composer
- 切换国内源
composer config -g repo.packagist composer https://packagist.phpcomposer.com
- 输入composer进行验证