http://laravel.p2hp.com/cndocs/10.x
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer
你的第一个 Laravel 项目
composer create-project laravel/laravel example-app
当应用程序创建完成后,你可以通过 Artisan CLI 的serve
命令来启动 Laravel 的本地服务:
cd example-app
php artisan serve