How to Install Laravel on Localhost

Getting Started With Laravel Basic Concepts & Installation on Localhost.

# Laravel Basic Requirements

Since we want to work with the latest version of Laravel, let us first have a look at the basic requirements:

  • PHP >= 7.1.3
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • XML PHP Extension
  • Ctype PHP Extension
  • JSON PHP Extension

# Install Xampp

First of all, we need Xampp, so we can Download it from Here the official site.


# Composer

Composer is a PHP package manager that is integrated with Laravel Framework.

After you’ve downloaded and installed Xampp, now we need to install Composer.

Laravel needs the Composer program to manage its extensions. If you do not have this program, you can Download it from Here the official site.



After downloading Composer.exe, run it, in the installation process, if you are prompted for the php.exe path, its address in your system is xampp/php by default.

If the composer is installed correctly, you’ll see below picture by entering composer command in cmd.


Now to install Laravel on the localhost, type below command in cmd.

C:\> cd xampp

C:\ xampp>cd htdocs


Now in the corresponding path, enter the following command to create a new Laravel project:

Composer create-project –prefer-dist laravel/laravel new_project

Now, Laravel is being installed on your system. After installation, go to the new_project folder and execute the php artisan serve command.

C:\ xampp\ htdocs > Cd new_project

C:\ xampp\ htdocs \ new_project >php artisan serve


A new message will be displayed on the server and your work on cmd will be completed.

Just open your browser and enter one of the addresses below.


At this moment, your new Laravel project will be successfully installed and run.


How to Install Laravel on Localhost

You May Also Like

4 thoughts on “How to Install Laravel on Localhost

  1. Thanks for another fantastic article. Where else could anyone get that kind of information in such a perfect way of writing? I’ve a presentation next week, and I am on the look for such info.

  2. I have recently started a blog, the information you provide on this web site has helped me greatly. Thank you for all of your time & work.

Leave a Reply

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