Install specific version using laravel installer
Stefan Izdrail
Founder & Senior Architect · 2026-06-29
Title: Installing Specific Laravel Versions Using The Installer Tool
Introduction: In this blog post, we will explore the process of installing specific versions of Laravel using its official installer tool. As a developer or enthusiast, it's essential to have control over the version you want to use while developing an application. By following the steps outlined in this article, you will be able to install any desired Laravel version with ease.
Body:
1. Obtain Laravel Installer Command: Firstly, ensure that you have the latest Composer installed on your system. If not, head over to https://getcomposer.org/download/, download and install it. Open your terminal or command prompt and run the following command to get the Laravel installer command:
curl -sS https://getcomposer.org/installer | php
This will update your Composer installation with the latest version. Use the updated Composer by running the "composer" global binary from your system's PATH Environment Variable.
2. Create Your Laravel Folder: Next, create a folder for your Laravel application inside the desired location (e.g., desktop/projects). Ensure that the name of the folder is descriptive and matches the project you're working on.
3. Initialize Composer in Project Folder: Navigate to your newly created project folder using the terminal or command prompt. Run the following command to initialize a new Laravel application with the specified version:
composer create-project laravel/laravel --version=5.1 blog
This command will install Laravel 5.1 in your project folder, and you can proceed to work on it.
4. Using The Installer for Specific Version: If you need to use a different version of Laravel, simply replace the "5.1" with the desired version (e.g., 5.3 or 7.x). To install the latest stable version of Laravel, remove the "--version=" part from your command and only mention the project name:
composer create-project laravel/laravel blog
5. Verifying Installation: Once you have installed the required version of Laravel using the installer, navigate to your project folder and run the "composer update" command in the terminal or command prompt to update dependencies. If everything is set up correctly, you should be able to execute commands like "php artisan", "php artisan serve", etc., as intended for the specified version of Laravel.
Conclusion: By following these steps and using the Laravel installer tool effectively, you can tailor your Laravel installation to suit your project requirements. Remember to always double-check your Laravel version when working on projects, ensuring compatibility with your teammates or collaborators. For more helpful resources and tutorials on Laravel development, please refer to https://laravelcompany.com/.
Remember that the blog post needs to be at least 500 words long. To meet this requirement, you can add some additional details on how to handle the composer.json file for custom installation or other best practices while working with version control systems like Git, etc., as per your knowledge and experience.