php@7.4

Install command:
brew install php@7.4

General-purpose scripting language

https://www.php.net/

License: PHP-3.01

Formula JSON API: /api/formula/php@7.4.json

Bottle JSON API: /api/bottle/php@7.4.json

Formula code: php@7.4.rb on GitHub

Bottle (binary package) installation support provided for:

Intel ventura
monterey
big sur
catalina
64-bit linux
Apple Silicon ventura
monterey
big sur

Current versions:

stable 7.4.33

Other versions:

php@8.0 8.0.26 General-purpose scripting language
php@7.3 7.3.33 General-purpose scripting language

Keg-only

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.86.0 Get a file from an HTTP, HTTPS or FTP server
freetds 1.3.15 Libraries to talk to Microsoft SQL Server and Sybase databases
gd 2.3.3 Graphics library to dynamically manipulate images
gettext 0.21.1 GNU internationalization (i18n) and localization (l10n) library
gmp 6.2.1 GNU multiple precision arithmetic library
icu4c 71.1 C/C++ and Java libraries for Unicode and globalization
krb5 1.20.1 Network authentication protocol
libpq 15.1 Postgres C API library
libsodium 1.0.18 NaCl networking and cryptography library
libzip 1.9.2 C library for reading, creating, and modifying zip archives
oniguruma 6.9.8 Regular expressions library
openldap 2.6.3 Open source suite of directory software
openssl@1.1 1.1.1s Cryptography and SSL/TLS Toolkit
pcre2 10.40 Perl compatible regular expressions library with a new API
sqlite 3.40.0 Command-line interface for SQLite
tidy-html5 5.8.0 Granddaddy of HTML tools, with support for modern standards
unixodbc 2.3.11 ODBC 3 connectivity for UNIX

Depends on when building from source:

httpd 2.4.54 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@7.4/lib/httpd/modules/libphp7.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/7.4/

Analytics (macOS):

Installs (30 days)
php@7.4 34,523
Installs on Request (30 days)
php@7.4 34,382
Build Errors (30 days)
php@7.4 35
Installs (90 days)
php@7.4 127,222
Installs on Request (90 days)
php@7.4 126,745
Installs (365 days)
php@7.4 501,814
Installs on Request (365 days)
php@7.4 499,295

Analytics (Linux):

Installs (30 days)
php@7.4 155
Installs on Request (30 days)
php@7.4 155
Build Errors (30 days)
php@7.4 0
Installs (90 days)
php@7.4 593
Installs on Request (90 days)
php@7.4 588
Installs (365 days)
php@7.4 2,426
Installs on Request (365 days)
php@7.4 2,404
Fork me on GitHub