1.安裝Composer
https://www.runoob.com/w3cnote/composer-install-and-usage.html
$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
$ composer --version
鏡像地址
更換成阿里鏡像:composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
更換成Laravel China鏡像: composer config -g repo.packagist composer https://packagist.laravel-china.org
更換成中國(guó)全量鏡像:composer config -g repo.packagist composer https://packagist.phpcomposer.com
2.Laravel項(xiàng)目
https://learnku.com/docs/laravel/6.x/installation/5124#52027b
項(xiàng)目名稱為blog Laravel版本為6.*
composer create-project --prefer-dist laravel/laravel blog "6.*"