➜ htdocs git:(master) ✗ composer create-project laravel/laravel;
Installing laravel/laravel (v5.8.17)
- Installing laravel/laravel (v5.8.17): Downloading (100%)
Created project in /Applications/MAMP/htdocs/laravel
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies (including require-dev)
^C
➜ htdocs git:(master) ✗php
若是外國鏡像慢的不能用的話,能夠用一下命令換成中國的:laravel
composer config -g repo.packagist composer https://packagist.phpcomposer.comgit