macOS
brew install php@8.1local Homebrew formula metadata
sudo port install phpMacPorts ports tree · lang/php/Portfile · source: api.github.com
brew / rank 1170
General-purpose scripting language. Version 8.1.34 via Homebrew; verified 2026-10-25. Also installable with winget: winget install --id PHP.PHP.8.1 -e.
install
brew install php@8.1local Homebrew formula metadata
sudo port install phpMacPorts ports tree · lang/php/Portfile · source: api.github.com
sudo apk add php81Alpine Linux edge package indexes · php81 · source: dl-cdn.alpinelinux.org
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
winget install --id PHP.PHP.8.1 -eWindows Package Manager source index · PHP.PHP.8.1 · source: cdn.winget.microsoft.com
scoop install versions/php81Scoop official bucket manifest trees · bucket/php81.json · source: api.github.com
choco install phpChocolatey community package catalog · php · source: community.chocolatey.org
overview
General-purpose scripting language
No executable aliases were found in the local package database.
history
PHP 8.1 is a branch-pinned distribution of the PHP general-purpose scripting language, retained for software that depends on the 8.1 language behavior or extension ABI.
PHP began with Rasmus Lerdorf's CGI tools in 1994 and was released publicly in 1995. PHP 3 established the modern language project, PHP 4 introduced the Zend Engine, PHP 5 expanded the object model, PHP 7 delivered major engine-performance work, and PHP 8 began the current language series.
PHP 8.1.0 was released on 25 November 2021 as the second PHP 8 minor series.
PHP 8.1 introduced native enumerations, fibers, readonly properties, intersection types, and first-class callable syntax. Versioned packages let applications retain that language and extension ABI contract while the default PHP package advances.
The package provides the PHP CLI plus CGI, FPM, debugger, PHAR, PEAR/PECL, phpize, and php-config tooling. Typical uses include CLI scripts, Composer tasks, local web runtimes, CI compatibility jobs, and native-extension builds.
PHP reads system and SAPI-specific php.ini files at startup. Web-server configurations may additionally use per-directory .user.ini files; php --ini reports the active search path and loaded configuration.
The Homebrew formula is keg-only, allowing PHP 8.1 to coexist with other PHP branches. This is useful for reproducing older deployment environments, maintaining legacy applications, and testing packages against an exact minor line.
security posture
No matching local secret-handling manifest was found for php@8.1. Package metadata is still published here so future coverage has a stable package URL.
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 |
|---|---|---|---|
| No executable data was present. | |||
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@8.1 |
|---|---|
| Version | 8.1.34 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/php@8.1 |
| Homepage | https://www.php.net/ |
| Upstream docs | https://www.php.net/ |
| License | PHP-3.01 |
| Source archive | https://www.php.net/distributions/php-8.1.34.tar.xz |
| Last updated | 2026-10-25T12:29:56+02:00 |
| Pulse | updated |
| Dependencies | apr, apr-util, argon2, aspell, autoconf, curl, freetds, gd, gettext, gmp, icu4c@79, krb5, libpq, libsodium, libzip, oniguruma, openldap, openssl@4, pcre2, sqlite, tidy-html5, unixodbc |
| Build dependencies | httpd, pkgconf |
| Uses from macOS | bzip2, libedit, libffi, libxml2, libxslt |
| Bottle | available (on arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux) |
| Homebrew post-install | not 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@8.1/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.1/ |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | php@8.1 |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | yes |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
PHP.PHP.8.1
winget install --id PHP.PHP.8.1 -ephp81 8.1.34-r5
The PHP81 language runtime engine
sudo apk add php81php81-apache2 8.1.34-r5
PHP81 Module for Apache2
sudo apk add php81-apache2php81-bcmath 8.1.34-r5
PHP81 extension: BC Math
sudo apk add php81-bcmathphp81-bz2 8.1.34-r5
PHP81 extension: Bzip2
sudo apk add php81-bz2php81-calendar 8.1.34-r5
PHP81 extension: Calendar
sudo apk add php81-calendarphp81-cgi 8.1.34-r5
PHP81 Common Gateway Interface
sudo apk add php81-cgiphp81-common 8.1.34-r5
The PHP81 language runtime engine (common config)
sudo apk add php81-commonphp81-ctype 8.1.34-r5
PHP81 extension: ctype
sudo apk add php81-ctypephp81-curl 8.1.34-r5
PHP81 extension: cURL
sudo apk add php81-curlphp81-dba 8.1.34-r5
PHP81 extension: DBA
sudo apk add php81-dbaphp81-dev 8.1.34-r5
The PHP81 language runtime engine (development files)
sudo apk add php81-devphp81-doc 8.1.34-r5
The PHP81 language runtime engine (documentation)
sudo apk add php81-docphp81-dom 8.1.34-r5
PHP81 extension: DOM
sudo apk add php81-domphp81-embed 8.1.34-r5
PHP81 Embedded Library
sudo apk add php81-embedphp81-enchant 8.1.34-r5
PHP81 extension: enchant
sudo apk add php81-enchantsource 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.