Mac OS 安装Laravel 方法一
Mac OS已经自带了各种开发语言的环境,如Ruby,Python,当然也有PHP,只是这里是出自于安装composer的需要,为了一句命令安装Laravel。
1. 如果已经安装了Homebrew
brewupdatebrew tap homebrew/homebrew-phpbrew tap homebrew/dupesbrew tap homebrew/versionsbrewinstallphp55-intl
没有的话,先运行
ruby-e"$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
2.安装composer
brewinstall homebrew/php/composer
3.创建Laravel项目
composercreate-project laravel/laravel--prefer-dist
Mac OS安装Laravel 方法二
1.下载laravel.phar
wgethttp://laravel.com/laravel.phar
2.重命名
mvlaravel.phar laravel
3.移动到bin中
sudo mv laravel /usr/local/bin
4.创建项目
laravelnewblog
转自:https://www.phodal.com/blog/mac-os-install-laravel-4/