Environment Setup
macOS Setup Guide
Mac is the native home of many Laravel developers. The tooling here is excellent.
Option A: Laravel Herd (Recommended)
Laravel Herd for macOS is the gold standard. It provides a zero-config development environment.
Steps
-
Download: Visit herd.laravel.com.
-
Install: Drag the app to your Applications folder.
-
Launch: Open the app. It will automatically install the latest PHP and Composer versions.
-
Database: Herd for Mac includes Herd Pro features, or you can download DBngin (free) to handle your MySQL/PostgreSQL database.
Option B: Homebrew (The Manual Way)
If you prefer to manage packages yourself.
-
Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -
Install PHP:
brew install php -
Install Composer:
brew install composer -
Install Node.js:
brew install node
Verification
Open your terminal (Command + Space, type "Terminal") and run:
php -v
composer -V
node -v
You should see version numbers for all of them.
Was this page helpful?
Built with Documentation.AI
Last updated today