18

I want to install a specific version of Laravel Lumen (5.1 instead of the lastest one 5.2) on a new project.

From the documentation :

lumen new blog

or :

composer create-project laravel/lumen --prefer-dist

Does not work : it install the lastest one.

Ifnot
  • 4,914
  • 4
  • 33
  • 47
  • Possible duplicate of [Install Older Version of Laravel using Composer](http://stackoverflow.com/questions/23043391/install-older-version-of-laravel-using-composer) – DavidT Mar 23 '16 at 09:45
  • Hum ... the approach is slightly different but the original problem looks the same – Ifnot Mar 23 '16 at 10:33
  • I think the result is the same and googling `install specific version of laravel` its the first link. So i think its easy enough to find. That's also just one example. There is [this one](http://stackoverflow.com/questions/32042558/installing-specific-laravel-5-version-with-composer-create-project) and [this one](http://stackoverflow.com/questions/23754260/installing-specific-laravel-version-with-composer-create-project) too – DavidT Mar 23 '16 at 11:20
  • Initially my question is for lumen, and googling with several words with lumen does not show up theses results. Thats why i created this one, but i agree, the result look the same. – Ifnot Mar 23 '16 at 13:55

1 Answers1

42

Create a project using the composer command :

Create a Laravel 5.1 project into the blog folder :

composer create-project laravel/laravel blog "5.1.*"

Create a Lumen 5.1 project into the blog folder :

composer create-project laravel/lumen blog "5.1.*"
Ifnot
  • 4,914
  • 4
  • 33
  • 47