#Installing additional PHP extensions
Installing additional extensions requires you to install PHP via Homebrew in order to compile them.
You can do this by running:
brew install php
Once PHP is installed via Homebrew, you may install the extension:
pecl install [extension-name]
This creates an
[extension].so extension file that you can now activate and use with Laravel Herd.
On an M1/M2 Mac, the extension can be fount at
On an Intel Mac, it will be at
You may activate your custom extensions by editing your
This file is located at
# Absolute path to the extension.so fileextension=/opt/homebrew/lib/php/pecl/20220829/[extension].so