Local development with Laravel Herd

Published

Updated

🐑 🐑 🐑 🐑

Baa. Baa. Baa.

Laravel Herd is a desktop app for macOS and Windows that runs PHP, NGINX and Node natively, without containers. The free version covers PHP sites; Herd Pro adds MySQL and other services.

Laravel Herd is made by the Laravel team. It works for Laravel and other PHP projects. Compared to Laravel Valet it needs no Homebrew or terminal setup, compared to Laravel Sail no Docker.

Free and Pro

FreeHerd Pro
PHP, NGINX, DNS, Node, Composer✓✓
MySQL, PostgreSQL, Redis—✓
Mail, Xdebug detection—✓

With the free version, run MySQL separately, for example with DBngin.

Installation and usage

Download the installer from the website and run it. Herd sits in the menu bar or system tray and serves every folder in ~/Herd as a .test domain:

  1. Create ~/Herd/my-project
  2. Open http://my-project.test

Switch the PHP version globally or per site from the Herd menu.

Working with fortrabbit

Herd uses the SSH keys in ~/.ssh, so git pushes and SSH access to fortrabbit work with the keys set up there.

Frequently asked

Is Laravel Herd free?

Yes. The free version includes PHP, NGINX, DNS, Node and Composer. Herd Pro is a yearly license that adds managed services such as MySQL, PostgreSQL and Redis, plus mail and debugging tools.

#

Written by a human. Review, grammar checks and typo fixes by AI.

AI use & editorial processEdit on GitHub ↗