A Homebrew tap repository for PHP-related formulas with MacOS (Apple silicon, Intel), Linux (AMD64, ARM64) and WSL (AMD64) support.
If you looking for Linux, Nginx, MySQL, PHP (LEMP stack) development environment just review this https://github.com/digitalspacestdio/homebrew-ngdev
| Os | Arch | 5.6 | 7.0 | 7.1 | 7.2 | 7.3 | 7.4 | 8.0 | 8.1 | 8.2 | 8.3 | 8.4 | 8.5 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MacOs | x86_64 |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
| MacOs | arm64 |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
| Linux | x86_64 |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
| Linux | arm64 |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
Bottles are temporarily disabled, all formulae build from source.
- macOS / Linux: Homebrew
- macOS:
xcode-select --install - Debian / Ubuntu / Mint:
systemtap-sdt-devbuild-essential - Fedora / CentOS / OpenSUSE:
systemtap-sdt-develgcc-c++makepatch
To install latest release version with common extensions
brew install digitalspacestdio/php/php-commonTo install specific version with common extensions
brew install digitalspacestdio/php/php84-commonTo install specific php version without extra extensions
brew install digitalspacestdio/php/php84The common formula will install php and next extensions:
amqpapcugmpigbinaryintlldapmongodbmsmtpopcachepdo-mysqlpdo-pgsqlredissodiumtidyxdebugzipyamlxdebug
php -vphp83 -v