How to install Laravel via Laravel Installer on Windows?

Stefan Izdrail

Founder & Senior Architect · 2026-06-29

Laravel Company
Title: Effortlessly Install Laravel on Windows with the Laravel Installer Introduction: Laravel is one of the most popular PHP frameworks used for web application development. It comes equipped with various features that make it easy to develop, maintain, and deploy applications efficiently. To get started with Laravel on your Windows machine, you can use Laravel Installer, a powerful tool that simplifies the installation process. In this blog post, we will explore how to install Laravel via Laravel Installer on Windows while incorporating relevant code examples and best practices along the way. Prerequisites: Before diving into the installation process, ensure you have the following installed on your system: 1. PHP 7.4 or higher (Laravel requires specific versions of PHP to function correctly) 2. Composer (used for dependency management in Laravel projects) 3. WAMP (a web application server stack including Apache, MySQL, and PHP) or XAMPP (similar to WAMP but includes additional tools). Step-by-Step Installation: 1. Download the Laravel Installer using Composer: a. Open your terminal and run the following command: `composer global require "laravel/installer"` b. This will download and install the laravel/installer package globally on your system. 2. Configure PATH: a. To make sure that the Laravel executable is found when you run the laravel command in your terminal, add the ~/.composer/vendor/bin directory to your Windows PATH configuration. For more information on configuring PATH in Windows, refer to this Microsoft article. 3. Using the Laravel Installer: a. Now, open your terminal and run `laravel new ` from within the folder you want to create the project. This command creates a new Laravel application named after your specified . For example, running this command without specifying will result in a project called "laravel". 4. Install and Configure the Database: a. Laravel requires a database for storing data, so you need to install one if none is present. The most common choices are MySQL or MariaDB. Follow your chosen database's installation instructions to get it running. 5. Configuring Your New Project: a. Once the project has been created, navigate into the project folder using `cd `. Then, run `composer install` to download all required dependencies listed in the composer.json file. 6. Running the Project: a. Finally, start your web application server (WAMP or XAMPP) and locate the port number where PHP is running. For example, it could be on port 8080 if you're using XAMPP. In your terminal window, run `php artisan serve` to launch the Laravel development server on localhost: (for example, http://localhost:8000). Conclusion: Now that you know how to install Laravel via Laravel Installer on Windows, you can quickly set up your development environment and focus on developing robust web applications with ease. Remember to keep your Laravel installation up-to-date and refer to the Laravel documentation for more information about framework features and best practices. You should also check out https://laravelcompany.com/ for helpful resources, tutorials, and expert guidance tailored specifically to Laravel developers. Happy coding!