Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install Older Version of Laravel using Composer

Tags:

laravel-4

How do I install older version of Laravel framework using composer? The current version is 4.1 and I want to install Laravel 4.0.

like image 482
Christopher Kikoti Avatar asked Apr 13 '14 13:04

Christopher Kikoti


People also ask

How do I download an older version of Laravel?

To install the old version of Laravel, the easiest way is to use the composer create-project command. Using this command we only have to specify the project name and Laravel version that we want it to be installed and there you go it's ready.

Can I downgrade Laravel version?

How is it possible to downgrade to Laravel 5.5? You can remove your composer. lock and vendor files/folders and change laravel version to 5.5.

How can we install Laravel by the composer?

Via Download. Once Composer is installed, download the 4.2 version of the Laravel framework and extract its contents into a directory on your server. Next, in the root of your Laravel application, run the php composer. phar install (or composer install ) command to install all of the framework's dependencies.


1 Answers

either update your composer.json to what GregD mentioned or fetch it directly with

composer create-project laravel/laravel your-project-name 4.0.* 

prefer this, as there can be some caveats when getting version 4.1 and wanting to downgrade (or even upgrade).

like image 106
Simon Wicki Avatar answered Sep 18 '22 05:09

Simon Wicki