How to install Laravel PHP Framework on localhost.

This tutorial walking through how to install Laravel PHP Framework on Xampp. Laravel is easy to install PHP frameworks on a local server like Xampp, Wamp etc. Below we will see installation steps of a PHP framework Laravel on Xampp webserver. We will install laravel in 3 steps.

1.Install Xampp webserver on localhost.
2.Download and Install Composer.
3.Install Laravel PHP framework.

 

1.Install Xampp webserver on localhost.

The first step is download and install the latest version of Xampp webserver on localhost. You can read complete installation guide here. Once you installed Xampp, Open Xampp control panel and start Apache and MySQL.

 

2.Download and Install Composer.

Composer allows you to declare the libraries your project depends on and it will manage (install/update) them for you. Download Composer setup file from getcomposer.org/download.

Install Laravel franework

 

Once you downloaded the setup file, Run the file and click Next to continue.

Install Laravel franework

 

Installer automatically detects the PHP command-line for you. Click Next to continue.

Install Laravel franework

 

Click Next to start install Composer.

Install Laravel franework

 

Install Laravel franework

 

Finish the installation of Composer.

Install Laravel franework

 

Install Laravel franework

 

Once you finish the installation, close all windows file explorer then go to Xampp folder. Press the SHIFT key and Right Click and choose Run command window.

Install Laravel franework

 

Once command window is open, type “composer” to check whether Composer is added or not.

Install Laravel franework

 

First, download the Laravel installer using Composer.

 

3.Install Laravel PHP framework.

composer global require “laravel/installer=~1.1”

Install Laravel franework

 

Once you finish the installation, start a Laravel project by issuing the Composer “create-project” command in your terminal: copy paste the following code to start a project laravel.

composer create-project laravel/laravel C:\\Xampp\htdocs\laravel

Now wait until laravel copies all files to laravel folder in “htdocs” directory completed. and you were done. Exit the terminal(command-line).

Install Laravel franework

 

Open your browser and run URL : localhost/laravel/public, you will see below output. You’re successfully installed Laravel.

Install Laravel franework

 

You can access configuration files from “C;\\Xamp\htdocs\laravel\config\”

Anwar Yakkiparamban

Anwar Yakkiparamban is the founder of Lauyou Learning. Prior to Lauyou learning, Anwar worked at ARD Engineering & Development, Qatar. He holds bachelor degree in Electronics and Communication Engineering from Govt. Engineering College Idukki.

You may also like...