Also known as: php@7.4

General-purpose scripting language

/api/formula/php.json (JSON API)

Formula code on GitHub

Current versions:

stable 7.4.7
head ⚡️ HEAD
bottle 🍾 catalina, mojave, high_sierra

Other versions:

php@7.3 7.3.19 General-purpose scripting language
php@7.2 7.2.31 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.69 Automatic configure script builder
curl-openssl 7.71.1 Get a file from an HTTP, HTTPS or FTP server
freetds 1.2 Libraries to talk to Microsoft SQL Server and Sybase databases
freetype 2.10.2 Software library to render fonts
gettext 0.20.2 GNU internationalization (i18n) and localization (l10n) library
glib 2.64.3 Core application library for C
gmp 6.2.0 GNU multiple precision arithmetic library
icu4c 67.1 C/C++ and Java libraries for Unicode and globalization
jpeg 9d Image manipulation library
libffi 3.3 Portable Foreign Function Interface library
libpng 1.6.37 Library for manipulating PNG images
libpq 12.3 Postgres C API library
libsodium 1.0.18 NaCl networking and cryptography library
libzip 1.7.1 C library for reading, creating, and modifying zip archives
oniguruma 6.9.5-rev1 Regular expressions library
openldap 2.4.50 Open source suite of directory software
openssl@1.1 1.1.1g Cryptography and SSL/TLS Toolkit
sqlite 3.32.3 Command-line interface for SQLite
tidy-html5 5.6.0 Granddaddy of HTML tools, with support for modern standards
unixodbc 2.3.7 ODBC 3 connectivity for UNIX
webp 1.1.0 Image format providing lossless and lossy compression for web images

Depends on when building from source:

httpd 2.4.43 Apache HTTP server
pkg-config 0.29.2 Manage compile and link flags for libraries
To enable PHP in Apache add the following to httpd.conf and restart Apache:
     LoadModule php7_module $(brew --prefix)/opt/php/lib/httpd/modules/

     <FilesMatch \.php$>
     SetHandler application/x-httpd-php

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/7.4/


Installs (30 days)
php 45,367
php --HEAD 11
Installs on Request (30 days)
php 43,672
php --HEAD 11
Build Errors (30 days)
php 18
php --HEAD 1
Installs (90 days)
php 148,190
php --HEAD 27
Installs on Request (90 days)
php 140,115
php --HEAD 27
Installs (365 days)
php 517,003
php --HEAD 41
Installs on Request (365 days)
php 481,395
php --HEAD 41
Fork me on GitHub