Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/shivammathur/homebrew-extensions

:beers: Homebrew tap for PHP extensions
https://github.com/shivammathur/homebrew-extensions

amqp apcu grpc hacktoberfest homebrew homebrew-tap http igbinary imagick imap memcached msgpack pcov pecl php php-extensions protobuf redis swoole xdebug

Last synced: 13 days ago
JSON representation

:beers: Homebrew tap for PHP extensions

Lists

README

        



Homebrew Tap for PHP extensions



brew tap shivammathur/extensions



Build status


Build status


LICENSE


PHP Versions Supported




Linux architectures supported


macOS architectures supported


macOS architectures supported

## 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.1` |
| `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:

```zsh
brew update
```

- Check that the required PHP version is installed. This tap works with PHP from both `shivammathur/php` tap and `homebrew/core` tap:

```zsh
php -v
```
- If not, install the required PHP version. For example, to install `PHP 8.3`:

```zsh
brew tap shivammathur/php
brew install shivammathur/php/[email protected]
brew link --force --overwrite shivammathur/php/[email protected]
```

Refer to [shivammathur/php](https://github.com/shivammathur/homebrew-php) tap for more information about installing PHP.

### Install PHP Extensions

- Add Tap `shivammathur/extensions`:

```zsh
brew tap shivammathur/extensions
```

- Then install the required extension. See [Formula](Formula) directory for available formulae.

- For example, to install `Xdebug` on `PHP 8.3`:

```zsh
brew install shivammathur/extensions/[email protected]
```

### Upgrade extensions

- For example, to upgrade `Xdebug` on `PHP 8.3`.

```zsh
brew upgrade shivammathur/extensions/[email protected]
```

### 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`):

```zsh
brew services restart httpd
```
- For Nginx:

```zsh
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.

```zsh
sudo chown -R "$(id -un)":"$(id -gn)" $(brew --prefix)
```

- Check if your issue is a Homebrew's [common issue](https://docs.brew.sh/Common-Issues).

- If you are still facing an issue, please create a discussion thread [here](https://github.com/shivammathur/homebrew-extensions/discussions).

## License

The code in this project is licensed under the [MIT license](http://choosealicense.com/licenses/mit/).
Please see the [license file](LICENSE) for more information. This project has multiple [dependencies](#dependencies "Dependencies for this Homebrew tap"). Their licenses can be found in their respective repositories.

## Contributions

Contributions are welcome!
Please see [Contributor's Guide](.github/CONTRIBUTING.md "shivammathur/homebrew-extensions contribution 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](https://github.com/shivammathur/homebrew-extensions/discussions "shivammathur/extensions discussions").

## Sponsors

In addition to GitHub Actions, we use [MacStadium](https://www.macstadium.com/opensource/members) for our CI infrastructure.


Mac Stadium


Mac Stadium

This project is also generously supported by many other users and organisations via [GitHub Sponsors](https://github.com/sponsors/shivammathur).

Sponsor shivammathur

## Related Projects

- [shivammathur/homebrew-php](https://github.com/shivammathur/homebrew-php "Tap for PHP")
- [shivammathur/setup-php](https://github.com/shivammathur/setup-php "Setup PHP in GitHub Actions")

## Dependencies

### Extensions

- [arnaud-lb/php-rdkafka](https://github.com/arnaud-lb/php-rdkafka "rdkafka")
- [couchbase/couchbase-php-client](https://github.com/couchbase/couchbase-php-client "couchbase")
- [grpc/grpc](https://github.com/grpc/grpc "gRPC")
- [igbinary/igbinary](https://github.com/igbinary/igbinary "igbinary")
- [Imagick/imagick](https://github.com/Imagick/imagick "Imagick")
- [jbboehr/php-psr](https://github.com/jbboehr/php-psr "Psr")
- [krakjoe/apcu](https://github.com/krakjoe/apcu "APCu")
- [krakjoe/pcov](https://github.com/krakjoe/pcov "PCOV")
- [libvips/php-vips-ext](https://github.com/libvips/php-vips-ext "Vips")
- [m6w6/ext-http](https://github.com/m6w6/ext-http.git "PECL-HTTP")
- [m6w6/ext-propro](https://github.com/m6w6/ext-propro "Propro")
- [m6w6/ext-raphf](https://github.com/m6w6/ext-raphf "Raphf")
- [mongodb/mongo-php-driver](https://github.com/mongodb/mongo-php-driver "Mongodb")
- [msgpack/msgpack](https://github.com/msgpack/msgpack-php "Msgpack")
- [open-telemetry/opentelemetry-php-instrumentation](https://github.com/open-telemetry/opentelemetry-php-instrumentation "OpenTelemetry auto-instrumentation extension")
- [osmanov/pecl-event](https://bitbucket.org/osmanov/pecl-event "Event")
- [phalcon/cphalcon](https://github.com/phalcon/cphalcon "Phalcon")
- [php-amqp/php-amqp](https://github.com/php-amqp/php-amqp "amqp")
- [php-gnupg/php-gnupg](https://github.com/php-gnupg/php-gnupg "gnupg")
- [php-memcached-dev/php-memcached](https://github.com/php-memcached-dev/php-memcached "Memcached")
- [php/pecl-file_formats-yaml](https://github.com/php/pecl-file_formats-yaml "PHP YAML")
- [php/pecl-mail-mailparse](https://github.com/php/pecl-mail-mailparse "PHP Mailparse")
- [php/pecl-encryption-mcrypt](https://github.com/php/pecl-encryption-mcrypt "PHP Mcrypt")
- [php/pecl-networking-ssh2](https://github.com/php/pecl-networking-ssh2 "PHP SSH2")
- [php/pecl-networking-uuid](https://github.com/php/pecl-networking-uuid "PHP UUID")
- [php/php-src](https://github.com/php/php-src "PHP Source")
- [phpredis/phpredis](https://github.com/phpredis/phpredis "Redis")
- [protocolbuffers/protobuf](https://github.com/protocolbuffers/protobuf "protocolbuffers")
- [nikic/php-ast](https://github.com/nikic/php-ast "PHP AST")
- [sibaz/pecl-expect](https://github.com/sibaz/pecl-expect "expect")
- [swoole/swoole-src](https://github.com/swoole/swoole-src "Swoole")
- [websupport-sk/pecl-memcache](https://github.com/websupport-sk/pecl-memcache "Memcache")
- [xdebug/xdebug](https://github.com/xdebug/xdebug "Xdebug")
- [xlswriter](https://github.com/viest/php-ext-xlswriter.git "xlswriter")
- [zeromq/php-zmq](https://github.com/zeromq/php-zmq "ZMQ")
- [newrelic/newrelic-php-agent](https://github.com/newrelic/newrelic-php-agent "newrelic")

### Homebrew

- [homebrew/brew](https://github.com/Homebrew/brew "Homebrew/brew")
- [homebrew/actions](https://github.com/Homebrew/homebrew-actions "Homebrew/homebrew-actions")
- [homebrew/core](https://github.com/Homebrew/homebrew-core "Homebrew/homebrew-core")
- [homebrew/homebrew-test-bot](https://github.com/homebrew/homebrew-test-bot "homebrew/homebrew-test-bot")
- [shivammathur/php](https://github.com/shivammathur/homebrew-php "shivammathur/homebrew-php")

### Formulae dependencies

- [brotli](https://formulae.brew.sh/formula/brotli "brotli")
- [curl](https://formulae.brew.sh/formula/curl "curl")
- [czmq](https://formulae.brew.sh/formula/czmq "czmq")
- [expect](https://formulae.brew.sh/formula/expect "expect")
- [gpgme](https://formulae.brew.sh/formula/gpgme "gpgme")
- [grpc](https://formulae.brew.sh/formula/grpc "grpc")
- [icu4c](https://formulae.brew.sh/formula/icu4c "icu4c")
- [imagemagick](https://formulae.brew.sh/formula/imagemagick "imagemagick")
- [imap-uw](https://formulae.brew.sh/formula/imap-uw "imap")
- [krb5](https://formulae.brew.sh/formula/krb5 "krb5")
- [libevent](https://formulae.brew.sh/formula/libevent "libevent")
- [libidn2](https://formulae.brew.sh/formula/libidn2 "libidn2")
- [liblzf](https://formulae.brew.sh/formula/liblzf "liblzf")
- [libcouchbase](https://formulae.brew.sh/formula/libcouchbase "libcouchbase")
- [libmcrypt](https://sourceforge.net/projects/mcrypt/files/Libmcrypt/ "libmcrypt")
- [libmemcached](https://formulae.brew.sh/formula/libmemcached "libmemcached")
- [librdkafka](https://formulae.brew.sh/formula/librdkafka "librdkafka")
- [libssh2](https://formulae.brew.sh/formula/libssh2 "libssh2")
- [libyaml](https://formulae.brew.sh/formula/libyaml "libyaml")
- [lz4](https://formulae.brew.sh/formula/lz4 "lz4")
- [net-snmp](https://formulae.brew.sh/formula/net-snmp "net-snmp")
- [openssl](https://formulae.brew.sh/formula/openssl@3 "openssl")
- [ossp-uuid](https://formulae.brew.sh/formula/ossp-uuid "ossp-uuid")
- [pcre](https://formulae.brew.sh/formula/pcre "pcre")
- [rabbitmq-c](https://formulae.brew.sh/formula/rabbitmq-c "rabbitmq")
- [snappy](https://formulae.brew.sh/formula/snappy "snappy")
- [vips](https://formulae.brew.sh/formula/vips "vips")
- [zeromq](https://formulae.brew.sh/formula/zeromq "zeromq")
- [zstd](https://formulae.brew.sh/formula/zstd "zstd")

🔼 Back to top