-1

I need to install archive version of Laravel 4.1 php framework. I tried installing using composer in ubuntu machine by executing the command given below:-

composer create-project laravel/laravel /var/www/demo --prefer-dist

But it is downloading the latest version 4.2.

How can i download a specific version of this framework by using either composer or phar?

0

2 Answers 2

1
composer create-project laravel/laravel path 4.1

This has been answered before here

Sign up to request clarification or add additional context in comments.

2 Comments

This doesn't work anymore. See the list of accepted composer options: getcomposer.org/doc/03-cli.md#create-project (just tested: [RuntimeException] The "--pref" option does not exist.
@DamienPirsy Updated to the documentation.
1

Now you're telling Composer to install the one from dist preferibly (which will be the latest stable version)

You can simply change your composer.json file to:

"license": "MIT",
"require": {
  "laravel/framework": "4.1.*"
},

to choose your preferred version

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.