Back

The Laravel team has developed a one-click installation script, thus lowering the barrier to entry.

This documentation now includes new installation methods, all utilizing one-click scripts, supporting macOS, Windows, and Linux.

# macos
/bin/bash -c "$(curl -fsSL php.new/install/mac)"

# windows
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('php.new/install/windows'))

# linux
/bin/bash -c "$(curl -fsSL php.new/install/linux)"

The script will install PHP Composer and Laravel installer. After success, it can be used directly

Laravel new example-app

cd example-app

php artisan serve

1

155

windows, I like to use laragon, it's very lightweight

1

45

Never used Laragon, but I doubt it’s more “lightweight” than herd.

2

191