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
| Free | Herd 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:
- Create
~/Herd/my-project - 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.