Formula

php@8.3

8.3.35

General-purpose scripting language

Install

brew install php@8.3

Details

Sources

Supported platforms

ArchitecturePlatformsVersionDownload
Apple SiliconGolden Gate8.3.35File
SHA-256453e6d72c7c9ad3f41fd888c6770bf42c8f72ea0937d4573a214c8eab6d1726a
Apple SiliconTahoe8.3.35File
SHA-25626d319a3a8f07eec82f30beef7d8d1d841a9a15d0cf7a7158797bf42f686c83d
Apple SiliconSequoia8.3.35File
SHA-25612f9a3a762e15d0bced2c6b9bcf016efca796755ca3f722c135465d7d9716c32
ARM64Linux8.3.35File
SHA-256c6e7bb2fe3c51283bcc17a19abc7aa1ca48f8db90acd0f703c478e6f4890396b
x86_64Linux8.3.35File
SHA-2566d78a52c74f0a2e9c7f757f8fc079201746b64e78b8e5194dbc7530f114771b3

Dependencies

  • apr
  • apr-util
  • argon2
  • aspell
  • autoconf
  • curl
  • freetds
  • gd
  • gmp
  • icu4c@78
  • krb5
  • libpq
  • libsodium
  • libzip
  • oniguruma
  • openldap
  • openssl@3
  • pcre2
  • sqlite
  • tidy-html5
  • unixodbc
  • gettext

Package data

Caveats

To enable PHP in Apache add the following to httpd.conf and restart Apache:
    LoadModule php_module $HOMEBREW_PREFIX/opt/php@8.3/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.3/