Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify Lumen (or Laravel) version on new installation?

Tags:

laravel

lumen

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.

like image 985
Ifnot Avatar asked Mar 23 '16 09:03

Ifnot


People also ask

Should I use lumen or Laravel?

Lumen is better for building high performing micro framework API. Laravel can handle event queuing and has a powerful template. Lumen can't handle the event queuing and don't have any powerful template either. Laravel has Symfony framework that can be used to create Symfony components.

How do you install lumens?

To start with, install composer and then change your directory to the root folder of the server. Create a lumen project “lumen_api” from the “laravel/lumen” package (packagist.org). The composer will create a folder “lumen_api” and install all files of lumen including dependency.


1 Answers

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.*"
like image 179
Ifnot Avatar answered Sep 19 '22 09:09

Ifnot