mac
```
安装
curl -sS[https://getcomposer.org/installer](https://getcomposer.org/installer)| php
激活全局命令
mv composer.phar /usr/local/bin/composer
安装 laravel
composer global require "laravel/installer"
sudo echo 'export PATH="~/.composer/vendor/bin:$PATH"' >> ~/.bash_profile
nano ~/.bashrc
输入 alias laravel='~/.composer/vendor/bin/laravel'
source ~/.bashrc
source ~/.bash_profile
php artisan serve
```
```
composer create-project --prefer-dist laravel/laravel hd
```