Awesome
<p align="center"> <a href="https://github.com/shivammathur/homebrew-extensions" target="_blank"> <img src="https://repository-images.githubusercontent.com/272870557/ec55a100-a309-11eb-9d60-a922ed6bebd4" alt="Homebrew Tap for PHP extensions" width="560"> </a> </p> <div id="top"></div> <h1 align="center">brew tap shivammathur/extensions</h1> <p align="center"> <a href="https://github.com/shivammathur/homebrew-extensions" title="Homebrew tap for PHP extensions"> <img alt="Build status" src="https://github.com/shivammathur/homebrew-extensions/workflows/Update%20and%20Build%20Formulae/badge.svg"> </a> <a href="https://github.com/shivammathur/homebrew-extensions" title="Homebrew tap for PHP extensions"> <img alt="Build status" src="https://github.com/shivammathur/homebrew-extensions/workflows/Test%20Formulae/badge.svg"> </a> <a href="https://github.com/shivammathur/homebrew-extensions/blob/master/LICENSE" title="license"> <img alt="LICENSE" src="https://img.shields.io/badge/license-MIT-428f7e.svg?logo=open%20source%20initiative&logoColor=white&labelColor=555555"> </a> <a href="https://github.com/shivammathur/homebrew-extensions/tree/master/Formula" title="Formulae for PHP extensions"> <img alt="PHP Versions Supported" src="https://img.shields.io/badge/php-5.6%20to%208.4-777bb3.svg?logo=php&logoColor=white&labelColor=555555"> </a> </p> <p align="center"> <a href="https://github.com/shivammathur/homebrew-extensions#os-support" title="Linux x86_64 supported"> <img alt="Linux architectures supported" src="https://img.shields.io/badge/Linux-x86__64%20-f6ab01?logo=linux&logoColor=555555&labelColor=ffffff"> </a> <a href="https://github.com/shivammathur/homebrew-extensions#os-support" title="Apple Intel x86_64 supported"> <img alt="macOS architectures supported" src="https://img.shields.io/badge/macOS-Intel%20x86__64%20-007DC3?logo=apple&logoColor=555555&labelColor=ffffff"> </a> <a href="https://github.com/shivammathur/homebrew-extensions#os-support" title="Apple arm64 supported"> <img alt="macOS architectures supported" src="https://img.shields.io/badge/macOS-Apple%20arm64%20-c0476d?logo=apple&logoColor=555555&labelColor=ffffff"> </a> </p>Extensions
Extension | PHP Version |
---|---|
amqp | PHP 5.6 to PHP 8.4 |
apcu | PHP 5.6 to PHP 8.4 |
ast | PHP 7.0 to PHP 8.4 |
couchbase | PHP 5.6 to PHP 8.4 |
ds | PHP 7.0 to PHP 8.4 |
event | PHP 5.6 to PHP 8.4 |
expect | PHP 5.6 to PHP 8.4 |
gearman | PHP 5.6 to PHP 8.4 |
gnupg | PHP 5.6 to PHP 8.4 |
grpc | PHP 5.6 to PHP 8.4 |
igbinary | PHP 5.6 to PHP 8.4 |
imagick | PHP 5.6 to PHP 8.4 |
imap | PHP 5.6 to PHP 8.4 |
lua | PHP 5.6 to PHP 7.4 |
mailparse | PHP 5.6 to PHP 8.4 |
mcrypt | PHP 5.6 to PHP 8.4 |
memcache | PHP 5.6 to PHP 8.4 |
memcached | PHP 5.6 to PHP 8.4 |
mongodb | PHP 5.6 to PHP 8.4 |
msgpack | PHP 5.6 to PHP 8.4 |
newrelic | PHP 7.4 to PHP 8.4 |
opentelemetry | PHP 8.0 to PHP 8.4 |
pcov | PHP 7.1 to PHP 8.4 |
pdo_sqlsrv | PHP 7.0 to PHP 8.4 |
pecl_http | PHP 5.6 to PHP 8.4 |
phalcon3 | PHP 5.6 to PHP 7.3 |
phalcon4 | PHP 7.2 to PHP 7.4 |
phalcon5 | PHP 7.4 to PHP 8.3 |
propro | PHP 5.6 to PHP 7.4 |
protobuf | PHP 5.6 to PHP 8.4 |
psr | PHP 5.6 to PHP 8.4 |
raphf | PHP 5.6 to PHP 8.4 |
rdkafka | PHP 5.6 to PHP 8.4 |
redis | PHP 5.6 to PHP 8.4 |
snmp | PHP 5.6 to PHP 8.4 |
sqlsrv | PHP 7.0 to PHP 8.4 |
ssh2 | PHP 5.6 to PHP 8.4 |
swoole | PHP 5.6 to PHP 8.4 |
uuid | PHP 5.6 to PHP 8.4 |
v8js | PHP 7.0 to PHP 8.3 |
vips | PHP 7.0 to PHP 8.4 |
vld | PHP 5.6 to PHP 8.3 |
xdebug | PHP 5.6 to PHP 8.4 |
xdebug2 | PHP 7.2 to PHP 7.4 |
xlswriter | PHP 7.0 to PHP 8.4 |
yaml | PHP 5.6 to PHP 8.4 |
zmq | PHP 5.6 to PHP 8.4 |
OS Support
Operating System | Architecture |
---|---|
Linux | x86_64 |
macOS Monterey | x86_64 , arm64 |
macOS Ventura | x86_64 , arm64 |
macOS Sonoma | x86_64 , arm64 |
Usage
Prerequisites
- Update homebrew and the formulae:
brew update
- Check that the required PHP version is installed. This tap works with PHP from both
shivammathur/php
tap andhomebrew/core
tap:
php -v
- If not, install the required PHP version. For example, to install
PHP 8.3
:
brew tap shivammathur/php
brew install shivammathur/php/php@8.3
brew link --force --overwrite shivammathur/php/php@8.3
Refer to shivammathur/php tap for more information about installing PHP.
Install PHP Extensions
- Add Tap
shivammathur/extensions
:
brew tap shivammathur/extensions
-
Then install the required extension. See Formula directory for available formulae.
-
For example, to install
Xdebug
onPHP 8.3
:
brew install shivammathur/extensions/xdebug@8.3
Upgrade extensions
- For example, to upgrade
Xdebug
onPHP 8.3
.
brew upgrade shivammathur/extensions/xdebug@8.3
Restart your webserver
If you are using Apache
or Nginx
with php-fpm
, restart your webserver after installing or updating any PHP extensions.
- For Apache (
httpd
):
brew services restart httpd
- For Nginx:
brew services restart nginx
Debugging
-
Make sure you ran
brew update
before installing a PHP extension. -
Run
brew doctor
and fix the warnings it reports. -
Make sure homebrew has correct permissions.
sudo chown -R "$(id -un)":"$(id -gn)" $(brew --prefix)
-
Check if your issue is a Homebrew's common issue.
-
If you are still facing an issue, please create a discussion thread here.
License
The code in this project is licensed under the MIT license. Please see the license file for more information. This project has multiple dependencies. Their licenses can be found in their respective repositories.
Contributions
Contributions are welcome! Please see Contributor's Guide before you start. If you face any issues while using this tap or want to suggest a feature/improvement, create a discussion thread here.
Sponsors
In addition to GitHub Actions, we use MacStadium for our CI infrastructure.
<a href="https://www.macstadium.com/opensource/members#gh-light-mode-only"> <img src="https://setup-php.com/sponsors/macstadium.png" alt="Mac Stadium" width="200px"> </a> <a href="https://www.macstadium.com/opensource/members#gh-dark-mode-only"> <img src="https://setup-php.com/sponsors/macstadium-white.png" alt="Mac Stadium" width="200px"> </a>This project is also generously supported by many other users and organisations via GitHub Sponsors.
<a href="https://github.com/sponsors/shivammathur"><img src="https://setup-php.com/sponsors.svg?" alt="Sponsor shivammathur"></a>
Related Projects
Dependencies
Extensions
- arnaud-lb/php-rdkafka
- couchbase/couchbase-php-client
- grpc/grpc
- igbinary/igbinary
- Imagick/imagick
- jbboehr/php-psr
- krakjoe/apcu
- krakjoe/pcov
- libvips/php-vips-ext
- m6w6/ext-http
- m6w6/ext-propro
- m6w6/ext-raphf
- mongodb/mongo-php-driver
- msgpack/msgpack
- open-telemetry/opentelemetry-php-instrumentation
- osmanov/pecl-event
- phalcon/cphalcon
- php-amqp/php-amqp
- php-gnupg/php-gnupg
- php-memcached-dev/php-memcached
- php/pecl-file_formats-yaml
- php/pecl-mail-mailparse
- php/pecl-encryption-mcrypt
- php/pecl-networking-ssh2
- php/pecl-networking-uuid
- php/php-src
- phpredis/phpredis
- protocolbuffers/protobuf
- nikic/php-ast
- sibaz/pecl-expect
- swoole/swoole-src
- websupport-sk/pecl-memcache
- xdebug/xdebug
- xlswriter
- zeromq/php-zmq
- newrelic/newrelic-php-agent