brew install php
Also known as: php@8.0
General-purpose scripting language
License: PHP-3.01
/api/formula-linux/php.json
(JSON API)
Linux formula code on GitHub
Bottle (binary package) installation support provided for Linux platforms:
Intel | big sur | ✅ |
---|---|---|
catalina | ✅ | |
mojave | ✅ | |
64-bit linux | ✅ | |
ARM64 | big sur | ✅ |
Current versions:
stable | ✅ | 8.0.3 |
head | ⚡️ | HEAD |
Other versions:
php@7.4 | 7.4.16 | General-purpose scripting language |
php@7.3 | 7.3.27 | General-purpose scripting language |
php@7.2 | 7.2.34 | General-purpose scripting language |
Depends on:
apr | 1.7.0 | Apache Portable Runtime library |
apr-util | 1.6.1 | Companion library to apr, the Apache Portable Runtime library |
argon2 | 20190702 | Password hashing library and CLI utility |
aspell | 0.60.8 | Spell checker with better logic than ispell |
autoconf | 2.71 | Automatic configure script builder |
curl | 7.76.1 | Get a file from an HTTP, HTTPS or FTP server |
freetds | 1.2.20 | Libraries to talk to Microsoft SQL Server and Sybase databases |
gd | 2.3.2 | Graphics library to dynamically manipulate images |
gettext | 0.21 | GNU internationalization (i18n) and localization (l10n) library |
glib | 2.68.1 | Core application library for C |
gmp | 6.2.1 | GNU multiple precision arithmetic library |
icu4c | 68.2 | C/C++ and Java libraries for Unicode and globalization |
krb5 | 1.19.1 | Network authentication protocol |
libffi | 3.3 | Portable Foreign Function Interface library |
libpq | 13.2 | Postgres C API library |
libsodium | 1.0.18 | NaCl networking and cryptography library |
libzip | 1.7.3 | C library for reading, creating, and modifying zip archives |
oniguruma | 6.9.7.1 | Regular expressions library |
openldap | 2.4.58 | Open source suite of directory software |
openssl@1.1 | 1.1.1k | Cryptography and SSL/TLS Toolkit |
pcre2 | 10.36 | Perl compatible regular expressions library with a new API |
sqlite | 3.35.4 | Command-line interface for SQLite |
tidy-html5 | 5.6.0 | Granddaddy of HTML tools, with support for modern standards |
unixodbc | 2.3.9 | ODBC 3 connectivity for UNIX |
bzip2 | 1.0.8 | Freely available high-quality data compressor |
libedit | 20210216-3.1 | BSD-style licensed readline alternative |
libxml2 | 2.9.10 | GNOME XML library |
libxslt | 1.1.34 | C XSLT library for GNOME |
zlib | 1.2.11 | General-purpose lossless data-compression library |
Depends on when building from source:
httpd | 2.4.46 | Apache HTTP server |
pkg-config | 0.29.2 | Manage compile and link flags for libraries |
xz | 5.2.5 | General-purpose data compression with high compression ratio |
To enable PHP in Apache add the following to httpd.conf and restart Apache: LoadModule php_module $(brew --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: $(brew --prefix)/etc/php/8.0/ |
Analytics:
Installs (30 days) | |
---|---|
php |
412 |
Installs on Request (30 days) | |
php |
392 |
Build Errors (30 days) | |
php |
1 |
Installs (90 days) | |
php |
1,195 |
Installs on Request (90 days) | |
php |
1,120 |
Installs (365 days) | |
php |
4,281 |
php --HEAD |
7 |
Installs on Request (365 days) | |
php |
3,952 |
php --HEAD |
7 |