macOS
brew install phplocal Homebrew formula metadata
sudo port install phpMacPorts ports tree · lang/php/Portfile · source: api.github.com
brew
General-purpose scripting language. Version 8.5.8 via Homebrew; verified 2026-07-03.
install
brew install phplocal Homebrew formula metadata
sudo port install phpMacPorts ports tree · lang/php/Portfile · source: api.github.com
sudo apt install phpDebian stable package indexes · php · source: deb.debian.org
sudo dnf install phpFedora Rawhide package metadata · php · source: dl.fedoraproject.org
nix profile install nixpkgs#phpnixpkgs package indexes · php · source: raw.githubusercontent.com
sudo pacman -S phpArch Linux sync databases · php · source: geo.mirror.pkgbuild.com
sudo zypper install php8openSUSE Tumbleweed package metadata · php8 · source: download.opensuse.org
choco install phpChocolatey community package catalog · php · source: community.chocolatey.org
scoop install main/phpScoop official bucket manifest trees · bucket/php.json · source: api.github.com
overview
General-purpose scripting language
security posture
formula declares a Homebrew service. generalized runtime or code generation signal.
orange risk · medium confidence · infrastructure
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
php.ini.user.iniexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
pear | cli | global executable | |
peardev | cli | global executable | |
pecl | cli | global executable | |
phar | cli | global executable | |
phar.phar | cli | global executable | |
php | cli | global executable | |
php-cgi | cli | global executable | |
php-config | cli | global executable | |
php-fpm | cli | global executable | |
phpdbg | cli | global executable | |
phpize | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:php |
|---|---|
| Version | 8.5.8 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/php |
| Homepage | https://www.php.net/ |
| Repository | https://github.com/php/php-src |
| Upstream docs | https://www.php.net/docs.php |
| License | PHP-3.01 AND Zend-2.0 AND BSL-1.0 AND MIT AND Apache-1.0 AND Apache-2.0 AND bcrypt-Solar-Designer AND BSD-2-Clause-Darwin AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND ISC AND LGPL-2.1-only AND LGPL-2.1-or-later AND OLDAP-2.8 AND TCL AND Zlib |
| Source archive | https://www.php.net/distributions/php-8.5.8.tar.xz |
| Last updated | 2026-07-03T00:31:47Z |
| Pulse | updated |
| Dependencies | apr, apr-util, argon2, autoconf, curl, freetds, gd, gettext, gmp, icu4c@78, libpq, libsodium, libzip, net-snmp, oniguruma, openldap, openssl@3, pcre2, sqlite, tidy-html5, unixodbc |
| Build dependencies | httpd, pkgconf |
| Uses from macOS | bzip2, libedit, libffi, libxml2, libxslt |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | defined |
| Service | declared |
| Caveats | 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.5/ |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | php |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
php 2:8.4+96
server-side, HTML-embedded scripting language (default)
sudo apt install phpphp
nix profile install nixpkgs#phpphp 2:8.3+93ubuntu2
server-side, HTML-embedded scripting language (default)
sudo apt install phpphp 8.5.7-3.fc45
PHP scripting language for creating dynamic web sites
sudo dnf install phpphp-bcmath 8.5.7-3.fc45
A module for PHP applications for using the bcmath library
sudo dnf install php-bcmathphp-cli 8.5.7-3.fc45
Command-line interface for PHP
sudo dnf install php-cliphp-common 8.5.7-3.fc45
Common files for PHP
sudo dnf install php-commonphp-dba 8.5.7-3.fc45
A database abstraction layer module for PHP applications
sudo dnf install php-dbaphp-dbg 8.5.7-3.fc45
The interactive PHP debugger
sudo dnf install php-dbgphp-devel 8.5.7-3.fc45
Files needed for building PHP extensions
sudo dnf install php-develphp-embedded 8.5.7-3.fc45
PHP library for embedding in applications
sudo dnf install php-embeddedphp-enchant 8.5.7-3.fc45
Enchant spelling extension for PHP applications
sudo dnf install php-enchantphp-ffi 8.5.7-3.fc45
Foreign Function Interface
sudo dnf install php-ffiphp-fpm 8.5.7-3.fc45
PHP FastCGI Process Manager
sudo dnf install php-fpmphp-gd 8.5.7-3.fc45
A module for PHP applications for using the gd graphics library
sudo dnf install php-gdphp-gmp 8.5.7-3.fc45
A module for PHP applications for using the GNU MP library
sudo dnf install php-gmpsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.