Install the specified version of the Lumen framework

Install the specified version of the Lumen framework

 

Currently only the composer create-project method is used, the lumen new method is not supported.

 

The installation process is as follows:

   One, use the following command:

 

# composer create-project laravel/lumen api.lumen-5.4 --prefer-dist  "5.4.*"
                                        The framework version specified by the project name
 

 

 

 

   The process of installing related packages:
Installing laravel/lumen (v5.4.0)
- Installing laravel/lumen (v5.4.0): Downloading (100%)         
Created project in api.lumen-5.4
> php -r "copy('.env.example', '.env');"
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 68 installs, 0 updates, 0 removals
..........
 
Writing lock file
Generating autoload files
 

 

 

    Second, view the version

 

# cd api.lumen-5.4/
# php artisan

    The version is displayed as follows:

 

 

Laravel Framework Lumen (5.4.7) (Laravel Components 5.4.*)

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
      --env[=ENV]       The environment the command should run under
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
 

 

 

 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326566528&siteId=291194637