Contents
Introduction:
In this blog, You will learn how to install Laravel 7 in windows with XAMPP and Composer by following an easy step-by-step tutorial. But before that let us have an introduction:
Laravel is a free, open-source PHP Web Framework and intended for the development of web applications following the MVC (Model-View-Controller) architectural pattern. Laravel is designed to make developing web apps faster and easier by using the built-in features.
XAMPP is a free, open-source software developed by Apache Friends. It is a cross-platform web-server solution stack package. XAMPP is an acronym that means (X) Cross-platform, (A) Apache, (M) MariaDB, (P) PHP, (P) Perl.
Composer is a tool for managing PHP dependencies. It will manage the libraries that are declared in your project. Composer is inspired by node’s npm and ruby’s bundler.
Now let proceed on setting up the environment for laravel installation:
Server Requirements:
- PHP >= 7.2.5
- BCMath PHP Extension
- Ctype PHP Extension
- Fileinfo PHP extension
- JSON PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PDO PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
Step 1: Download And Install XAMPP
Download the xampp on the link.
After downloading, install xampp by opening the installer. This will prompt for the first time installation. Just proceed and click OK.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 2 1-install-xampp-image](https://www.binaryboxtuts.com/wp-content/uploads/1-install-xampp-image-1-1024x578.jpg)
Click Next.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 3 2-install-xampp-image](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/2-install-xampp-image-1024x578.jpg)
Select the Components to install. We will choose the default then click Next.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 4 3-install-xampp-image](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/3-install-xampp-image-1024x578.jpg)
Choose the installation folder. We will choose the default and proceed by clicking Next.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 5 4-install-xampp-image](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/4-install-xampp-image-1024x578.jpg)
Choose the preferred language. We will choose the default (English), Then click Next.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 6 5-install-xampp-image](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/5-install-xampp-image-1024x578.jpg)
Click Next.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 7 6-install-xampp-image](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/6-install-xampp-image-1024x578.jpg)
Click Next to begin installing.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 8 7-install-xampp-image](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/7-install-xampp-image-1024x578.jpg)
The installation begins.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 9 8-install-xampp-image](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/8-install-xampp-image-1024x578.jpg)
After installing, Check the “Do you want to start the Control Panel now?” checkbox and click Finish.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 10 9-install-xampp-image](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/9-install-xampp-image-1024x578.jpg)
A XAMPP Control Panel will pop-up. Click Start button to start a module.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 11 11-install-xampp-image](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/11-install-xampp-image-1024x578.jpg)
Step 2: Download And Install Composer
Download the composer on the link.
After downloading, install composer by opening the installer.
Click Next.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 12 1-install-composer](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/1-install-composer-1024x578.jpg)
Select the location of PHP, since we installed XAMPP it is location on “C:\xampp\php\php.exe”, click Next.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 13 2-install-composer](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/2-install-composer-1024x578.jpg)
Now its ready for installation, Click Install.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 14 3-install-composer](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/3-install-composer-1024x578.jpg)
After the installation this show, click Next.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 15 4-install-composer](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/4-install-composer-1024x578.jpg)
Click Finish. The composer is installed successfully.
![How to Install Laravel 7 in Windows with XAMPP and Composer Easy Tutorial 16 5-install-composer](https://www.binaryboxtuts.com/wp-content/uploads/2020/05/5-install-composer-1024x578.jpg)
Step 3: Install Laravel 7
Select a folder that you want the Laravel to be installed then execute this command on Terminal or CMD to install Laravel 7:
composer create-project --prefer-dist laravel/laravel project-manager
Open the Laravel app folder and execute this command to run the Laravel app:
php artisan serve
After successfully running your app, open this URL in your browser:
http://localhost:8000