Windows Setup Guide
For Windows, we have two modern, "easy" ways to get started. You only need to choose one.
Option A: Laravel Herd (The Easiest Way)
Laravel Herd is a lightning-fast, native development environment. It includes everything you need (PHP, Composer, Node.js) in a single installer.
-
Download: Go to herd.laravel.com and download the installer.
-
Install: Run the
.exefile. -
Done: You can now open your terminal and type
php -vorcomposerand it just works!
Option B: The "php.new" Script (Command Line)
If you prefer using the terminal, there is a specialized script that automatically installs PHP 8.5, Composer, and Laravel, and configures your system path for you.
Instructions
-
Open the Start Menu: Press the
Windowskey. -
Find PowerShell: Type
Powershell. -
Run as Administrator: Right-click the app and select "Run as Administrator".
-
Run the Command: Copy and paste the following command, then hit
Enter:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://php.new/install/windows'))
-
Follow Prompts: The script will handle the rest.
-
Verify: Close PowerShell and open a new one. Type
php -v.
Option C: Manual Setup (Laragon/XAMPP)
Note: This is the "Old School" way. Only use this if you are already familiar with these tools.
-
Laragon: Download from laragon.org. It is excellent and comes with MySQL/HeidiSQL out of the box.
-
XAMPP: Download from apachefriends.org.
Next Step: Database
If you used Herd or php.new, you still need a database.
-
Download MySQL: dev.mysql.com/downloads/installer/
-
Or use DBngin: A free tool to manage databases easily. dbngin.com (Highly Recommended to pair with Herd).
Last updated today