Prerequisites
- PHP 8.2+ (recommended 8.4 via php.new)
- Composer
- Node.js/NPM or Bun
- Code editor like VS Code
Install PHP, Composer, Laravel Installer
macOS/Linux:
/bin/bash -c "$(curl -fsSL https://php.new/install/mac/8.4)" # or linux
Windows PowerShell (Admin):
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/8.4'))
Create New App
laravel new my-app
cd my-app
npm install
npm run build
composer run dev
Visit http://localhost:8000. See Official Installation.
Configure .env for DB if needed (SQLite default).