in PHP, Windows

How to install Laravel and create a new project in Windows

Laravel is a free, open source PHP web application framework, designed for the development of model–view–controller (MVC) web applications.

Here’s how to install it on Windows and create a new project.

1. If you don’t have Apache and PHP installed, download and install XAMPP from Apache Friends. Download XAMPP

2. Download and install Composer (Dependency Manager for PHP). Download Composer

3. Download Laravel installer using Composer (run this in Command Prompt)

composer global require "laravel/installer=~1.1"

4. Add Laravel to the PATH variable to be able to access it without specifying full location to the application (run this in Command Prompt as Administrator)

setx /M path "%path%;%appdata%\Composer\vendor\bin"

5. Navigate to the directory where you want the app installed and run this command (in Command Prompt)

laravel new {project}

Replace {project} with the name of your project.

Write a Comment