Install specific version of Laravel framework with Composer

In some cases, you many need to install a specific version of the Laravel framework.  The typical scenario is that your shared hosting provider uses a version of PHP that is not supported by the latest version of Laravel framework.  For example, many shared hosting providers still use PHP 5.3, even though Laravel 4.3 (current as of this writing) requires PHP 5.4 and PHP 5.3 has reached “end-of-life” status.  The last version of Laravel to support PHP 5.3 (specifically version 5.3.7 or greater, due to requirement for bcrypt algorithm to support password hashing) is version 4.1.

To install version 4.1 of Laravel with Composer, run:

composer create-project laravel/laravel project_name --prefer-dist 4.1.*

By specifying 4.1.* instead of just 4.1, this ensures that we get the latest “minor” version of 4.1, such as 4.1.27, which often includes patches, such as security updates. See Composer documentation for other syntax options for package version numbers.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s