1.下载Composer包
curl -sS https://getcomposer.org/installer | php
2.安装Compose
mv composer.phar /usr/local/bin/composer
3.查看安装Composer是否成功
composer -v
安装版本成功显示结果如果出现版本号说明安装成功。
4.设置中国镜像
composer config -g repo.packagist composer https://packagist.phpcomposer.com
网友评论