I created an easy to use API to help businesses do incredible things with AI.
Laravel Tools

Laravel Herd: the simplest way to install PHP on your Mac

Benjamin Crozat
Modified on Aug 12, 2023 0 comments Edit on GitHub
Laravel Herd: the simplest way to install PHP on your Mac

What is Laravel Herd?

Laravel Herd is a free native macOS app that makes it even easier than Laravel Valet to get started with Laravel. It includes everything you need for a local development environment such as PHP, Nginx, and Dnsmasq.

It was introduced at Laracon US in July 19, 2023 and developed by Beyond Code for Laravel LLC.

How to install PHP on your Mac using Laravel Herd

  1. Download Herd on the official website.
  2. Open the Disk Image and drag the application into your /Applications folder.
  3. Launch it and follow the instructions. You can set it up from scratch or import your Laravel Valet configuration.

That’s it. Unlike with Laravel Valet (I wrote about it here), there is no need to install Homebrew (a package manager) and mess with all the dependencies. It just works out of the box.

Make sure everything works by running the following commands:

php --version
laravel --version
composer --version

What PHP versions does Laravel Herd support?

Laravel Herd supports the following versions of PHP:

  • PHP 7.4
  • PHP 8.0
  • PHP 8.1
  • PHP 8.2
  • PHP 8.3

Which PHP extensions are included?

Laravel Herd includes the following PHP extensions:

  • bcmath
  • bz2
  • calendar
  • ctype
  • curl
  • dba
  • dom
  • exif
  • ffi
  • fileinfo
  • filter
  • ftp
  • gd
  • gmp
  • iconv
  • imagick
  • intl
  • mbstring
  • mysqli
  • opcache
  • openssl
  • pcntl
  • pdo
  • pdo_mysql
  • pdo_pgsql
  • pdo_sqlite
  • pgsql
  • phar
  • posix
  • readline
  • redis
  • session
  • shmop
  • simplexml
  • soap
  • sockets
  • sodium
  • sqlite3
  • sysvmsg
  • sysvsem
  • sysvshm
  • tokenizer
  • xml
  • xmlreader
  • xmlwriter
  • zip
  • zlib

The strengths of Laravel Herd compared to Valet

  • Everything is bundled together. I thought Laravel Valet was simple, but Herd is even simpler.
  • The PHP binaries embedded in Laravel Herd are compiled to run super fast on your Apple silicon Mac. So you will have a significant performance boost.

The limitations of Laravel Herd compared to Valet

Using Laravel Herd, you will encounter some limitations, and this is where you will want to switch to Laravel Valet.

  • You cannot install PHP versions before PHP 7.4.
  • Although Herd included many, you cannot add PHP extensions.

Will there be a Windows or Linux version?

According to the developer, there isn’t a Windows or Linux version planned and never will.

Be the first to comment!

Get help or share something of value with other readers!

Great deals for enterprise developers
  • Summarize and talk to YouTube videos. Bypass ads, sponsors, chit-chat, and get to the point.
    Try Nobinge →
  • Monitor the health of your apps: downtimes, certificates, broken links, and more.
    20% off the first 3 months using the promo code CROZAT.
    Try Oh Dear for free
  • Keep the customers coming; monitor your Google rankings.
    30% off your first month using the promo code WELCOME30
    Try Wincher for free →
The latest community links
- / -