代码语言:javascript复制
//下载composer
curl -sS https://getcomposer.org/installer | php
//将composer.phar文件移动到bin目录以便全局使用composer命令
代码语言:javascript复制mv composer.phar /usr/local/bin/composer
//切换国内源
代码语言:javascript复制composer config -g repo.packagist composer https://packagist.phpcomposer.com
(adsbygoogle = window.adsbygoogle || []).push({});