LaravelPHP TutorialsWeb Development

Install Laravel 5 via composer on windows in easy steps

In this tutorial, we will discuss how to install laravel 5 on Windows OS from scratch. This will be short tutorial with main steps only. For installing on Ubuntu then click here

Steps to Install Laravel 5 on Windows OS

Laravel Framework is develop in PHP, so for executing PHP you need

  1. Apache or any other server that execute PHP
  2. Composer to install packages that is require in Laravel

Install Xampp

Open the link then download xampp base on your requirement.

Install Composer

Open the link then you will see web page


Click on highlight link and then download set up file. All instructions are already mention in composer website.

After download, run the set up file and then it will ask for php directory. Browse to the directory and then click next.

Restart your computer and then browse to xampp/htdocs folder

Install Laravel 5 using composer windows

Open Xampp control and then start Apache as shown below


Shift and then Right click inside htdocs directory as shown below


Open Power Shell and then type command.


If you see above screen then it means composer is working fine.

Now copy below command and then hit enter.

composer global require laravel/installer

This command will install laravel installer and make it globally available.

Type below command and then check installer is working or not


If you see above screen then it mean installer is working fine.

Create new Application

Type below command and then hit enter.

laravel new myApp

After complete installation, type below command and then hit enter

cd .\myApp\
php artisen serve

You are done with all the installation and you run your application using

laravel 5

You are ready to develop your application in Laravel 5. For any type query regarding installation fail or version contact-me

If you are using different package for server instead of xampp, you can face some compatibility issue.

Anil Mehra

I am Anil Mehra, a passionate, workaholic and a Full Stack Tech Savvy Programmer with true north towards growth. I have worked on 256 live projects in MNC. I am expertise in the field of Programming, Server Management, SEO, Blogging and SMO...

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button

Adblock Detected

Please turn off Ad blocker to view website