How to Install Laravel Framework in windows

Dear Reader, let us know that, “How to Install Laravel Framework in windows“. So in this Tutorial, We Learn Step By Step “How to Install Laravel Framework in Windows Process”.

Step 1:-  At first for Instalation of Laravel we need to verif the Precuites of the System.
i) PHP >= 5.5.9

ii) OpenSSL PHP Extension

iii) PDO PHP Extension

iv) Mbstring PHP Extensionv) Tokenizer PHP Extension.

Step 2:- Now we need to Install XAMPP Server from here.

Step 3:- Now After Installation of XAMPP Server we need to Install Composer
A composer is a PHP package manager that is integrated with Laravel Framework. In Windows, we can install it easy going to the official page and download the installer.
Install Composer here.

Step 4:- After Installation of Composer we need to Open windows Terminal and write composer for executing the command:

Step 5:- Now we need to Create Virtual Host, for this in this Article we want to configure the domain laravel.dev for our project.
We need to edit httpd-vhosts.conf that is located in “C:\xampp\apache\conf\extra\httpd-vhosts.conf” and add following lines at the end of the file from the below code

Step 6:- Now we need to Edit “hosts” file located “C:\Windows\System32\drivers\etc\hosts” from the below code

 

Save the file and we are ready to install laravel.

Step 7:- Now open windows Terminal and run below command “cd C:\xampp\htdocs” and press enter

Step 8:- After that run below command “composer create-project laravel/laravel laravel “5.1.*” “ and press enter

Step 9:- When it finishes, it will create following directory schema

how-to-install-laravel-framework-in-windows-step1

Step 10:- Now run your project, so you need to type in browser localhost/your_project_name/public/

like

http://localhost/laravel/public/ then you can see the result as in below snapshot

how-to-install-laravel-framework-in-windows-step2

Congratulations you have successfully Completed “How to Install Laravel Framework in windows“, if you like this post and was helpful for you then share this post on social media and if you have any query then please contact us or comment below, Thanks.

«
»

Leave a comment:

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