- 下载composer.phar
curl -sS https://getcomposer.org/installer | php - 把composer.phar移动到环境下让其变成可执行
mv composer.phar /usr/local/bin/composer - 测试
composer -V
*若出现command not found 增加/usr/local/bin进PATH - 换中国镜像
composer config -g repo.packagist composer https://packagist.phpcomposer.com
composer安装laravel5.5
http://www.dahouduan.com/2017/09/05/composer-install-laravel55/