MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

How to Install Laravel Framework in Windows

By installing three software, we can work in Lvr, so let’s know which angle is the software which we can install

  • Installing XAMPP
  • Installing Composer
  • Installing Laravel
Opening the XAMPP download page at apachefriends.org in a web browser

Open the XAMPP download page. Go to https://www.apachefriends.org/download.html in your computer’s web browser.

XAMPP download page in a browser, the first step of installing XAMPP for Laravel

2Scroll down to the “7.2.8 / PHP 7.2.8” heading. You’ll find it near the bottom of the list of downloads.

  • This is important; since Laravel requires PHP 7.13 or higher, you’ll need to make sure you don’t accidentally install an older version of XAMPP.
XAMPP downloads list scrolled to the 7.2.8 / PHP 7.2.8 heading

Click Download (32 bit). It’s a blue button to the right of the “7.2.8 / PHP 7.2.8” heading. This will download the XAMPP setup file onto your computer.

Download (32 bit) button next to the XAMPP 7.2.8 / PHP 7.2.8 heading

4. Open the XAMPP setup file. Double-click the downloaded setup file to do so.

Double-clicking the downloaded XAMPP setup file in Windows

Click Yes when prompted. This will open the XAMPP setup window.

Windows prompt asking to allow the XAMPP installer, with Yes selected

6Navigate through the XAMPP setup process. Click through the XAMPP menus by doing the following:

  • Click Next three times.
  • Uncheck the “Learn more about Bitnami for XAMPP” box.
  • Click Next twice.
XAMPP setup wizard with the Learn more about Bitnami for XAMPP box unchecked

7Click Finish when prompted. This will open the XAMPP language preferences pop-up window.

Final XAMPP setup screen with the Finish button

8Click Save when prompted. Doing so will save your default language settings and open the XAMPP dashboard.

XAMPP language preferences pop-up with the Save button

9. Start Apache. Click Start to the right of each of the “Apache” heading. This will turn on Apache. At this point, you’re ready to install Composer.

  • You can also do the same with the “MySQL” heading, but you’ll need to have MySQL installed in order to do so.

Installing Composer

Composer download page with the Composer-Setup.exe link

2. Select the Composer download link. Click the Composer-Setup.exe link near the top of the page.

Composer-Setup.exe download link near the top of the Composer download page
Clicking the Composer-Setup.exe link to download the Composer Windows installer

3. Open the downloaded Composer setup file. Double-click the “Composer-Setup” file to do so.

Double-clicking the downloaded Composer-Setup file in Windows

4Click Yes when prompted. This will open the Composer installation window.

Windows prompt to allow the Composer installer, with Yes selected

5. Click Next. It’s at the bottom of the window.

Composer Setup installer window on Windows with the Next button at the bottom

6. Select XAMPP if necessary. If you have multiple different command line-based PHP options installed on your computer, click the one listed in the drop-down box at the top of the window, then click C:\xampp\htdocs in the drop-down menu.

Composer Setup window with the XAMPP command-line PHP path selected in the drop-down

Click Next twice. This option is at the bottom of the menu.

Composer Setup window with the Next button to continue the installation

Click Install. It’s at the bottom of the window. Composer will begin installing.

Composer Setup ready-to-install screen with the Install button

9. Click Finish when prompted. Doing so signifies that Composer has been installed successfully.

Activating Composer

Composer Setup completion screen with the Finish button

1Open Start. Click the Windows icon in the bottom-left corner of the screen.

Windows Start icon in the bottom-left corner of the taskbar

2. Search for Command Prompt. Type in command prompt to do so.

Windows Start menu search for command prompt

3Right-click  Command Prompt. You should see it appear at the top of the Start window. A drop-down menu will appear.

Right-click menu on Command Prompt in the Windows Start menu search results

4. Click Run as administrator. It’s in the drop-down menu.

Run as administrator option in the Command Prompt right-click menu

5. Click Yes when prompted. Doing so opens Command Prompt with administrator privileges.

User Account Control prompt with Yes to open Command Prompt as administrator

6. Enter the Composer validation command. Type in php composer.phar and press â†µ Enter.

Wait for Composer to finish updating. Once the update completes, you can proceed with installing Laravel.

  • If you receive an error when you run the “php composer.phar” command, you’ll need to manually change the Composer directory before you proceed with installing Laravel.

Installing Laravel

Command Prompt window reopened before installing Laravel
  1. Close and re-open Command Prompt. Doing so ensures that you don’t have any interference from past commands.
Command Prompt running composer global require laravel/installer to install Laravel

2. Enter the Laravel installation command. Type in composer global require "laravel/installer" and press â†µ Enter. Laravel will immediately begin to install.

Command Prompt output after Laravel installs, ending at the system32 prompt

3. Wait for Laravel to install. Once Laravel finishes installing, you’ll see the regular Command Prompt tag (e.g., “system32>”) appear below the list of commands. At this point, you can begin using Laravel as needed.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Xampp Troubleshooting Guide

Log Levels of Apache, MySql, PHPMyAdmin, PHP, Composer Apache MySQL PHPMyAdmin PHPMyAdmin’s log level is primarily controlled by the PHP configuration, as it’s a PHP application. PHP…

Read More

Composer Install and Configuration Guide

Windows: Composer Install and Configuration Guide Prerequisite – XAMPP Step 1 – Download Composer package https://getcomposer.org/download/ Step 2 – Click on Composer-Setup.exe to start installer Step 3…

Read More

HOW TO CREATE EVENT CALENDAR IN LARAVEL? PART-1

Step 1. Before creating the project firstly, we download all the setups. Composer XAMPP Visual Studio IDE Git Bash Here Step 2. Now open your Internet Browser…

Read More

How to Install and create a project in Laravel for Windows User!

Before installing Laravel Composer, ensure that you have installed Xampp Server and Git-Bash. If not installed then go to this link and install:- xampp:- https://www.apachefriends.org/download.htmlGit-bash:- https://gitforwindows.org/ After…

Read More

Setting a Local Development Environment for Laravel on Windows | Install Laravel on Windows

Many developers use Windows for PHP projects, we will cover a basic XAMPP Setup for a Laravel project. Following these easy steps will help you run your…

Read More

How to Reset or Recover Forgotten mySql root Password

To reset a forgotten MySQL or MariaDB root password, stop the server, restart it with grant checks turned off (skip-grant-tables), set a new password with ALTER USER,…

Read More