当前位置:Gxlcms >
PHP教程 >
在ubuntu14.04上安装composerlaravellumen
在ubuntu14.04上安装composerlaravellumen
时间:2021-07-01 10:21:17
帮助过:29人阅读
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
- 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
|
composer, lumen, laravel