To install the Relay extension for PHP using Homebrew determine the PHP version using php -v and then install the matching extension:
brew install cachewerk/tap/relay # PHP 8.5
brew install cachewerk/tap/relay@7.4 # PHP 7.4The igbinary and msgpack PHP extensions are optional, however using the igbinary serializer is recommended. Install the extensions using PECL:
pecl install igbinary
# pecl install msgpackAfter the installation is completed, be sure to restart your PHP-FPM and web server services:
sudo brew services restart php
sudo brew services restart nginxbrew uninstall relay
rm $(php-config --ini-dir)/ext-relay.ini
# brew uninstall relay@8.1
# rm $($(brew --prefix php@8.1)/bin/php-config --ini-dir)/ext-relay.ini
rm -rf /opt/homebrew/etc/relayCheck the formula syntax before committing.
brew style cachewerk/tap