How to Install and Make First Laravel App on Windows

I use Wamp on my Windows box for developing PHP based apps, I recently installed Laravel on my Windows box to test how to framework works and performs common tasks related to web development. I would keep posting good stuff I learned about Laravel in easy to follow steps for new developers of Laravel like me.

The Steps I followed are following:

  1. Laravel used Composer for dependency management, so first I installed Composer for Windows. Like to download is:
    During the Composer installation, it would ask for the location of PHP.exe, so make sure you have installed PHP on your system before you install Composer.
  2. It would download a few things from internet, so wait with patience. It uses SSL, so make sure SSL module is enabled in your php.ini file, just remove the ";" before the like: "extension=php_openssl.dll". The php.ini file is located at your php's installation home folder.

    The installation would also set the composer location into you windows path environmental variable, so that you can use composer command from Command Prompt.
  3. Download the Laravel Installer using Composer. On your Command Prompt, enter:
    composer global require "laravel/installer=~1.1"
    It would install all dependencies e.g. Symfony Console, Guzzlehttp Guzzle, Laravel Intaller, etc.
  4. Add your ~/.composer/vendor/bin path into Path environmental variable, so that Windows Command Prompt could identify laravel command that would be used later to install Laravel and doing other tasks. In my case the path where its located is:
    so I added it into my Path environmental variable. Must restart your Shell or Command-Prompt so that updated Path variables is loaded.
  5. Its time to create our first Laravel applications. For it, we need to install the Laravel itself. Afte you have done the above steps, its very simple. Issue following command at Command Prompt:
    laravel new app-name
    make sure your current directory is where you need your project to be created. In my case, I got following output by running the laravel new command:
D:\OtherData\LaravelApps>laravel new addressbook
Crafting application...
Application ready! Build something amazing.

The addressbook folder contents looks like this:

The mail folder where our major web applications components would be located is "app", its default structure is following:

I moved the addressbook folder into wamp/www/, and access the URL:
http://localhost/addressbook/public/, here is how it looks like:


  1. This is a good tutorial for laravel beginners like me. Keep it up.

  2. Thank you. Solved my PATH issue on Windows.

  3. Thank you. It's detail.
    For ones who like speed. Check this out

  4. Laragon sounds me an overhead when one is already using WAMP or XAMPP or standalone installation of all softwares.

    1. Yes. You're right. Laragon is same with WAMP ( or XAMPP). Just a tool to make life easier.

  5. He used a best way to install this applications on windows. Thanks to share these important steps which is useful for everyone. digital marketing agency usa

  6. thank you after all errrors fixed from this post.
    But crafting takes long tine for me...

  7. Thank you, you solved my problem !

  8. You shared very informative post. i like this post. Thanks for sharing.

    Magento Website Development Company

  9. very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information.Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
    Web Designing Company Bangalore

  10. I faced so many hurdles when I did it first time. But now, I am availing of the benefits of this app in my Windows. Buy Digital Products


Post a Comment

Popular posts from this blog

Task 12 - Create Java Program with MySQL Database Connectivity

Java Interfaces and Exception Handling - Practice Problem with Solution

Task 16 - Javafx Program to Create, Retrieve, Update and Delete records with Database