YouTube Icon

Code Playground.

How to Install Laravel 5 on Windows using Composer

CFG

How to Install Laravel 5 on Windows using Composer

How to use composer to install laravel on windows. Laravel has become the most popular php framework since its launch, and not without a good reason.

It will certainly take some time to master laravel, but in the long run, the time spent is well worth it. Let's dive into the process of installing laravel on windows machine without wasting time.

To install laravel on windows machine, follow the steps below. Whatever xampp / wamp stack you have, it works for both of you. On WAMP, make sure that you install laravel on the folder ' web ' and on XAMPP, the ' htdocs ' of course.

Step 1. Open 'htdocs' folder on XAMPP, hold SHIFT key and right click on the folder, and choose 'open command window here'. Alternatively, you can open command window and change directory to 'xampp/htdocs' and same thing in wamp server.

Step 2. Enter the following command

composer create-project laravel/laravel my_project --prefer-dist

Here 'my_project' is the folder name where laravel files will be installed. Change this to your liking.

Step 3. Take some time to install laravel project then you are run this project in both server(xampp/wamp).

Installing Specific Laravel Version:

If you want to install earlier versions of laravel on your machine, make sure to include the respective version number on create-project command.

composer create-project laravel/laravel=5.4 my_project --prefer-dist

Here 'my_project' is the folder name where laravel files will be installed. Change this to your liking.

And if you like this tutorials please share it with your friends via Email or Social Media.




CFG