php
Install command:
brew install phpAlso known as: php@8.4
General-purpose scripting language
License: PHP-3.01
Formula JSON API: /api/formula/php.json
Formula code: php.rb on GitHub
Bottle (binary package) installation support provided for:
| macOS on Apple Silicon |
tahoe | ✅ |
|---|---|---|
| sequoia | ✅ | |
| sonoma | ✅ | |
| macOS on Intel |
sonoma | ✅ |
| Linux | ARM64 | ✅ |
| x86_64 | ✅ | |
Current versions:
| stable | ✅ | 8.4.14 |
| head | ⚡️ | HEAD |
Other versions:
| php@8.3 | 8.3.27 | General-purpose scripting language |
| php@8.2 | 8.2.29 | General-purpose scripting language |
| php@8.1 | 8.1.33 | General-purpose scripting language |
Revision: 1
Depends on:
| apr | 1.7.6 | Apache Portable Runtime library |
| apr-util | 1.6.3 | Companion library to apr, the Apache Portable Runtime library |
| argon2 | 20190702 | Password hashing library and CLI utility |
| autoconf | 2.72 | Automatic configure script builder |
| curl | 8.17.0 | Get a file from an HTTP, HTTPS or FTP server |
| freetds | 1.5.8 | Libraries to talk to Microsoft SQL Server and Sybase databases |
| gd | 2.3.3 | Graphics library to dynamically manipulate images |
| gmp | 6.3.0 | GNU multiple precision arithmetic library |
| libpq | 18.0 | Postgres C API library |
| libsodium | 1.0.20 | NaCl networking and cryptography library |
| libzip | 1.11.4 | C library for reading, creating, and modifying zip archives |
| net-snmp | 5.9.4 | Implements SNMP v1, v2c, and v3, using IPv4 and IPv6 |
| oniguruma | 6.9.10 | Regular expressions library |
| openldap | 2.6.10 | Open source suite of directory software |
| openssl@3 | 3.6.0 | Cryptography and SSL/TLS Toolkit |
| pcre2 | 10.47 | Perl compatible regular expressions library with a new API |
| sqlite | 3.51.0 | Command-line interface for SQLite |
| tidy-html5 | 5.8.0 | Granddaddy of HTML tools, with support for modern standards |
| unixodbc | 2.3.14 | ODBC 3 connectivity for UNIX |
| gettext | 0.26 | GNU internationalization (i18n) and localization (l10n) library |
Depends on when building from source:
| httpd | 2.4.65 | Apache HTTP server |
| pkgconf | 2.5.1 | Package compiler and linker metadata toolkit |
| gcc | 15.2.0 | GNU compiler collection |
| The PHP Internationalization extension is now in the `php-intl` formula. To enable PHP in Apache add the following to httpd.conf and restart Apache: LoadModule php_module $HOMEBREW_PREFIX/opt/php/lib/httpd/modules/libphp.so <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> Finally, check DirectoryIndex includes index.php DirectoryIndex index.php index.html The php.ini and php-fpm.ini file can be found in: $HOMEBREW_PREFIX/etc/php/8.4/ |
Analytics:
| Installs (30 days) | |
|---|---|
php |
35,590 |
php --HEAD |
58 |
| Installs on Request (30 days) | |
php |
31,618 |
php --HEAD |
58 |
| Build Errors (30 days) | |
php |
46 |
php --HEAD |
5 |
| Installs (90 days) | |
php |
100,270 |
php --HEAD |
165 |
| Installs on Request (90 days) | |
php |
88,431 |
php --HEAD |
164 |
| Installs (365 days) | |
php |
566,336 |
php --HEAD |
953 |
| Installs on Request (365 days) | |
php |
515,233 |
php --HEAD |
953 |