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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
MacOs | x86_64 |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
MacOs | arm64 |
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 |
Linux | arm64 |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
Os | Arch | 5.6 | 7.0 | 7.1 | 7.2 | 7.3 | 7.4 | 8.0 | 8.1 | 8.2 | 8.3 | 8.4 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
MacOs | x86_64 |
yes | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
MacOs | arm64 |
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 |
Linux | arm64 |
no | yes | yes | yes | yes | yes | yes | yes | yes | yes | yes |
- macOS / Linux: Homebrew
- macOS:
xcode-select --install
- Debian / Ubuntu / Mint:
systemtap-sdt-dev
build-essential
- Fedora / CentOS / OpenSUSE:
systemtap-sdt-devel
gcc-c++
make
patch
To install latest release version with common extensions
brew install digitalspacestdio/php/php-common
To install specific version with common extensions
brew install digitalspacestdio/php/php81-common
To install specific php version without extra extensions
brew install digitalspacestdio/php/php81
The common formula will install php and next extensions:
amqp
apcu
gmp
igbinary
intl
ldap
mongodb
msmtp
opcache
pdo-mysql
pdo-pgsql
redis
sodium
tidy
xdebug
zip
yaml
xdebug
php -v
php83 -v