How to install laravel on windows xampp

Rakesh Sharma      29 Comments  

How to install laravel on windows xampp :-

Now time of frameworks in php like laravel, codeigniter etc and easy to install php frameworks on local server like xampp, wamp etc. Below we will see installation steps of a php framework laravel on windows xampp. Let’s see how to install laravel on windows xmapp. for this we need some server requirements, some of software installation.
Below are the steps of How to install laravel on windows xampp using composer:-
Server requirement:-
PHP >= 5.4
MCrypt PHP Extension

Installation steps :-

1. Laravel requires Composer to manage its dependencies. so first need to download composer.
A. After download composer, install composer on your system using below options:-
a. Shell menus:- Run composer from Windows Explorer by right clicking folder items.(optional)


b. next step require php.exe which is normally in xampp/htdocs/php folder. and continue with more instructions and click next to finish installation.

2. Installation process also requires Git to be installed on the server to successfully complete the installation.
If you not have GIT installed on your system:-
a. Download Git and install it.

3. Now download latest version of laravel and unzip into your local server.
For example you have put into your local server where the directory is D:\xampp\htdocs\laravel\.

Using Shell menus (works if you already selected shell menus option on installation of composer) :-

1. Right click on your laravel folder and click on Use Composer here.

How to install laravel on windows xampp

2. will open CMD and enter command composer install and press enter key.
3. Now wait until process completed. it will take few time to download in your computer.

Using CMD with direct download :-

1. Open the CMD (start>serch for “cmd”> click on cmd.exe)in your computer and change the directory according to your laravel directory.(ex:- D:\xampp\htdocs\laravel>)
2. enter command composer install and press enter key.(ex:- D:\xampp\htdocs\laravel>composer install)


3. Now wait until process completed. it will take few time to download in your computer.

Using CMD create project command :-

1. Open the CMD (start>serch for “cmd”> click on cmd.exe)in your computer and run below command. “–prefer-dist” will be preferred location where you want to install laravel.

# install laravel using create project command
composer create-project laravel/laravel --prefer-dist
#composer create-project laravel/laravel d:\xampp\htdocs\laranew


2. Now wait until process completed. and you done.

After successfully installed you can access http://localhost/laravel/public/
Now you have finished installation steps of laravel using composer.


  • rupesh

    thank its good

    • tut snare

      thanks rupesh :)

  • Prabakar

    its great

    • tut snare

      thanks prabakar :)

      • Pawan Rote

        Thank you so much. :)

        It really worked out.!

        • tut snare

          thanks pawan

  • Le Van

    Laragon ( is much simpler. It supports L4, L5 in one-click.

  • Webdesign7

    Having fun with Laravel and this helped ! Thanks

  • Ineye Gabriel

    Thanks alot who ever you may be . This article helped me so much in solving hours of brain racking and tireless unistalling and reinstalling . God bless you . keep up the good work . i appreciate

  • naveen

    Nice Work

  • naveen

    Good Job

  • baDcoder

    Error in installing.Someone Please Help!!

    Warning: require(C:xampphtdocslaravelbootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:xampphtdocslaravelbootstrapautoload.php on line 17

    Fatal error: require(): Failed opening required ‘C:xampphtdocslaravelbootstrap/../vendor/autoload.php’ (include_path=’.;C:xamppphpPEAR’) in C:xampphtdocslaravelbootstrapautoload.php on line 1

    • rakesh sharma

      Have you followed steps correctly? Looks like files not downloaded correctly via composer or not installed correctly

    • Pratik Butani

      Have you got answer?

      • rakesh sharma

        Are you facing same error? this is just not following installation steps correctly. or may be you are not running “composer install” command at proper location. just grab path to your laravel dir and run coomand.

  • Pankaj Agrawal

    Thanks for sharing this……

  • Koushik Dutta

    Thank you for your great tutorial. You are great. for your laravel related for tutorial please inform me. email- thank u

    • rakesh sharma

      Thanks kaushik, you can subscribe site to stay update.

  • Boyong Lambert

    This is just what i was looking for. Thank you!

  • Rokafela

    thank you, this article helped me.

  • xicath

    this tutorial is outdated, there is no zip paket in
    i accot find link download laravel

    • kazaakiller

      backclick on desktop then select ‘use composer here’ in the command window type:composer global require “laravel/installer”

      • TheGood Guy


    • Abhitej Vissamsetty

      you can find it in laravel github repository

  • Praveen

    Error in installing of laravel

  • Arshad

    Thanks Rakesh for sharing wonderful tutorial.

    This tutorial is outdated but it is working perfectly fine.
    Only the outdated thing is Laravel zip file,

    after installing the ‘composer’ instead of zip file use this command
    > cd c:xampphtdocs
    htdocs> composer create-project –prefer-dist laravel/laravel blog (copied from Laravel documentation)

    It will download the required packages

  • Sara Osama

    thank you for this tutorial it is so clear