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.
5 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).
2 Comments
Christopher Kikoti
This is a very good option but am getting the Runtime error saying: Class Monolog\\Logger not found
nofinator
The error may be because the shell is confused by the wildcard. Try installing a specific version without the asterisk at the end.
Browse packagist - https://packagist.org/packages/laravel/laravel Find version you need and add it to composer i.e.
"require": {
"laravel/laravel": "v4.0.0",
},
2 Comments
Simon Wicki
"4.0.*" would be the best option here, so you'd still be on the 4.0 branch, but get all the fixes for it.
Christopher Kikoti
Thanks GregD, problem with this option is that I will have to manually downgrate to version 4.0.*