0.安装composer curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer 1.安装laravel,使用 Composer 下载 Laravel 安装包: composer global require "laravel/installer=~1.1" 2.安装lumen, 使用
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
1.安装laravel,使用 Composer 下载 Laravel 安装包:
composer global require "laravel/installer=~1.1"
2.安装lumen, 使用下面命令下载 Lumen 命令:
composer global require "laravel/lumen-installer=~1.0"
3.请确定把 ~/.composer/vendor/bin 路径放置于您的 PATH 里, 这样 Laravel/Lumen 执行文件就会存在你的系统。
echo 'export PATH="$PATH:~/.composer/vendor/bin"' >> ~/.bashrc
source ~/.bashrc
4.用laravel创建项目: laravel new blog
5.用lumen创建项目: lumen new lumen
1. [代码][PHP]代码
0.安装composer curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer 1.安装laravel,使用 Composer 下载 Laravel 安装包: composer global require "laravel/installer=~1.1" 2.安装lumen, 使用下面命令下载 Lumen 命令: composer global require "laravel/lumen-installer=~1.0" 3.请确定把 ~/.composer/vendor/bin 路径放置于您的 PATH 里, 这样 Laravel/Lumen 执行文件就会存在你的系统。 echo 'export PATH="$PATH:~/.composer/vendor/bin"' >> ~/.bashrc source ~/.bashrc 4.用laravel创建项目: laravel new blog 5.用lumen创建项目: lumen new lumen