Homebrew 为 PHP 扩展提供了一个 tap:beers:
brew tap shivammathur/extensions
| Extension | PHP Version |
|---|---|
amqp |
PHP 5.6 to PHP 8.6 |
apcu |
PHP 5.6 to PHP 8.6 |
ast |
PHP 7.0 to PHP 8.6 |
brotli |
PHP 5.6 to PHP 8.6 |
couchbase |
PHP 5.6 to PHP 8.6 |
decimal |
PHP 7.0 to PHP 8.6 |
ds |
PHP 7.0 to PHP 8.6 |
event |
PHP 5.6 to PHP 8.6 |
excimer |
PHP 7.1 to PHP 8.6 |
expect |
PHP 5.6 to PHP 8.6 |
gearman |
PHP 5.6 to PHP 8.6 |
gmagick |
PHP 5.6 to PHP 8.6 |
gnupg |
PHP 5.6 to PHP 8.6 |
grpc |
PHP 5.6 to PHP 8.6 |
igbinary |
PHP 5.6 to PHP 8.6 |
imagick |
PHP 5.6 to PHP 8.6 |
imap |
PHP 5.6 to PHP 8.6 |
interbase |
PHP 5.6 to PHP 8.6 |
lua |
PHP 5.6 to PHP 8.6 |
mailparse |
PHP 5.6 to PHP 8.6 |
maxminddb |
PHP 7.2 to PHP 8.6 |
mcrypt |
PHP 5.6 to PHP 8.6 |
memcache |
PHP 5.6 to PHP 8.6 |
memcached |
PHP 5.6 to PHP 8.6 |
mongodb1 |
PHP 8.1 to PHP 8.6 |
mongodb |
PHP 5.6 to PHP 8.6 |
msgpack |
PHP 5.6 to PHP 8.6 |
newrelic |
PHP 7.4 to PHP 8.4 |
oauth |
PHP 5.6 to PHP 8.6 |
opentelemetry |
PHP 8.0 to PHP 8.6 |
pcov |
PHP 7.1 to PHP 8.6 |
pdo_firebird |
PHP 7.0 to PHP 8.6 |
pdo_sqlsrv |
PHP 7.0 to PHP 8.6 |
pecl_http |
PHP 5.6 to PHP 8.6 |
pinba |
PHP 7.0 to PHP 8.6 |
phalcon3 |
PHP 5.6 to PHP 7.3 |
phalcon4 |
PHP 7.2 to PHP 7.4 |
phalcon5 |
PHP 7.4 to PHP 8.4 |
propro |
PHP 5.6 to PHP 7.4 |
protobuf |
PHP 5.6 to PHP 8.6 |
psr |
PHP 5.6 to PHP 8.6 |
raphf |
PHP 5.6 to PHP 8.6 |
rdkafka |
PHP 5.6 to PHP 8.6 |
redis |
PHP 5.6 to PHP 8.6 |
seaslog |
PHP 5.6 to PHP 8.6 |
scalar_objects |
PHP 7.0 to PHP 8.6 |
snmp |
PHP 5.6 to PHP 8.3 |
sqlsrv |
PHP 7.0 to PHP 8.6 |
ssh2 |
PHP 5.6 to PHP 8.6 |
spx |
PHP 5.6 to PHP 8.6 |
swoole |
PHP 5.6 to PHP 8.5 |
swow |
PHP 8.0 to PHP 8.5 |
uopz |
PHP 5.6 to PHP 8.6 |
uploadprogress |
PHP 5.6 to PHP 8.6 |
uuid |
PHP 5.6 to PHP 8.6 |
v8js |
PHP 7.0 to PHP 8.6 |
vips |
PHP 7.0 to PHP 8.6 |
vld |
PHP 5.6 to PHP 8.3 |
xdebug |
PHP 5.6 to PHP 8.6 |
xdebug2 |
PHP 7.2 to PHP 7.4 |
xhprof |
PHP 7.0 to PHP 8.6 |
xlswriter |
PHP 7.0 to PHP 8.6 |
yaml |
PHP 5.6 to PHP 8.6 |
zmq |
PHP 5.6 to PHP 8.6 |
zstd |
PHP 7.0 to PHP 8.6 |
| Operating System | Architecture |
|---|---|
| Linux | x86_64 |
| macOS Golden Gate | arm64 |
| macOS Tahoe | arm64 |
| macOS Sequoia | arm64 |
macOS Intel is not supported.
brew updateshivammathur/php tap and homebrew/core tap:php -vPHP 8.4:brew tap shivammathur/php
brew install shivammathur/php/[email protected]
brew link --force --overwrite shivammathur/php/[email protected]Refer to shivammathur/php tap for more information about installing PHP.
brew tap shivammathur/extensions
brew trust shivammathur/extensionsThen install the required extension. See Formula directory for available formulae.
For example, to install Xdebug on PHP 8.4:
brew install shivammathur/extensions/[email protected]Xdebug on PHP 8.4.brew upgrade shivammathur/extensions/[email protected]If you are using Apache or Nginx with php-fpm, restart your webserver after installing or updating any PHP extensions.
httpd):brew services restart httpdbrew services restart nginxMake 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.
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 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.
In addition to GitHub Actions, we use MacStadium for our CI infrastructure.
This project is also generously supported by many other users and organisations via GitHub Sponsors.
暂无开放 Issues,或尚未同步最近议题。