Install composer laravel lumen on ubuntu14.04

WBOY
Release: 2016-07-25 08:46:35
Original
921 people have browsed it
0. Install composer
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer

1. Install laravel, use Composer to download the Laravel installation package:

composer global require "laravel/lumen-installer=~1.1"

2. To install lumen, use the following command to download Lumen command:

composer global require "laravel/lumen-installer=~1.0"

3. Please make sure ~/.composer Place the /vendor/bin path in your PATH so that the Laravel/Lumen executable file will exist on your system.

echo 'export PATH="$PATH:~/.composer/vendor/bin"' >> ~/.bashrc

source ~/.bashrc

4. Create a project with laravel: laravel new blog

5. Create a project with lumen: lumen new lumen
  1. 0. Install composer
  2. curl -sS https://getcomposer.org/installer | php
  3. sudo mv composer.phar /usr/local/bin/composer
  4. 1. Install laravel, use Composer to download the Laravel installation package :
  5. composer global require "laravel/installer=~1.1"
  6. 2. To install lumen, use the following command to download Lumen command:
  7. composer global require "laravel/lumen-installer=~1.0"
  8. 3. Please confirm Place the path ~/.composer/vendor/bin in your PATH so that the Laravel/Lumen executable file will exist on your system.
  9. echo 'export PATH="$PATH:~/.composer/vendor/bin"' >> ~/.bashrc
  10. source ~/.bashrc
  11. 4. Create a project with laravel: laravel new blog
  12. 5. Create a project with lumen: lumen new lumen
Copy code
composer, lumen, laravel


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template