pkg.soopen package index

brew / rank 1170

Install php@8.1 with Homebrew, winget, apk, scoop, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper

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

Additional install commands

macOS

Homebrewverified · 100%
brew install php@8.1

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install php

MacPorts ports tree · lang/php/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add php81

Alpine Linux edge package indexes · php81 · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install php

Debian stable package indexes · php · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install php

Fedora Rawhide package metadata · php · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#php

nixpkgs package indexes · php · source: raw.githubusercontent.com

Arch Linux pacmanverified · 92%
sudo pacman -S php

Arch Linux sync databases · php · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install php8

openSUSE Tumbleweed package metadata · php8 · source: download.opensuse.org

Windows

Windows Package Managerverified · 92%
winget install --id PHP.PHP.8.1 -e

Windows Package Manager source index · PHP.PHP.8.1 · source: cdn.winget.microsoft.com

Scoopverified · 92%
scoop install versions/php81

Scoop official bucket manifest trees · bucket/php81.json · source: api.github.com

Chocolateyverified · 92%
choco install php

Chocolatey community package catalog · php · source: community.chocolatey.org

overview

Package summary

General-purpose scripting language

Commands and aliases

No executable aliases were found in the local package database.

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 1994: Rasmus Lerdorf created the first PHP CGI tools.
  • 1995: PHP Tools source was released publicly.
  • 1998: PHP 3.0 established the modern PHP project.
  • 2000: PHP 4.0 introduced the Zend Engine.
  • 2015: PHP 7.0 introduced Zend Engine 3.
  • 2020: PHP 8.0 began the PHP 8 series.
  • 2021: PHP 8.1.0 was released.

Related projects

  • Composer is PHP's project dependency manager; PHPStan and PHPantom are representative static-analysis and editor-intelligence tools that run against PHP projects.

security posture

No protected-tool coverage found yet

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.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Formula metadata declares a service or daemon block.
  • Homebrew bottle metadata is available for 5 platform targets.
  • Installs with 22 runtime dependencies.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
php.ini.user.ini

executables

Installed executables

CommandKindExposureNote
No executable data was present.

freshness

Version and 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.

page generated2026-11-04
manager version8.1.34
manager updated2026-10-25
local dataok
upstreamnot checked
latest detectednot detected

https://www.php.net/

  • infoRelease/tag comparison is only available for GitHub repositories.https://www.php.net/none confidence

install metadata

Package metadata

Package keybrew:php@8.1
Version8.1.34
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/php@8.1
Homepagehttps://www.php.net/
Upstream docshttps://www.php.net/
LicensePHP-3.01
Source archivehttps://www.php.net/distributions/php-8.1.34.tar.xz
Last updated2026-10-25T12:29:56+02:00
Pulseupdated
Dependenciesapr, 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 dependencieshttpd, pkgconf
Uses from macOSbzip2, libedit, libffi, libxml2, libxslt
Bottleavailable (on arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux)
Homebrew post-installnot defined
Servicedeclared
CaveatsTo 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 details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namephp@8.1
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedyes
Disabledno
Keg Onlyyes
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

winget95%

PHP.PHP.8.1

winget install --id PHP.PHP.8.1 -e
  • normalized package name match
  • Matched by: Php 8 1
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: PHP.PHP.8.1 from https://cdn.winget.microsoft.com/cache/source.msix
apk92%

php81 8.1.34-r5

The PHP81 language runtime engine

https://www.php.net/

sudo apk add php81
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-apache2 8.1.34-r5

PHP81 Module for Apache2

https://www.php.net/

sudo apk add php81-apache2
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-apache2 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-bcmath 8.1.34-r5

PHP81 extension: BC Math

https://www.php.net/

sudo apk add php81-bcmath
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-bcmath from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-bz2 8.1.34-r5

PHP81 extension: Bzip2

https://www.php.net/

sudo apk add php81-bz2
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-bz2 from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-calendar 8.1.34-r5

PHP81 extension: Calendar

https://www.php.net/

sudo apk add php81-calendar
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-calendar from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-cgi 8.1.34-r5

PHP81 Common Gateway Interface

https://www.php.net/

sudo apk add php81-cgi
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-cgi from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-common 8.1.34-r5

The PHP81 language runtime engine (common config)

https://www.php.net/

sudo apk add php81-common
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-common from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-ctype 8.1.34-r5

PHP81 extension: ctype

https://www.php.net/

sudo apk add php81-ctype
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-ctype from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-curl 8.1.34-r5

PHP81 extension: cURL

https://www.php.net/

sudo apk add php81-curl
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-curl from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-dba 8.1.34-r5

PHP81 extension: DBA

https://www.php.net/

sudo apk add php81-dba
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-dba from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-dev 8.1.34-r5

The PHP81 language runtime engine (development files)

https://www.php.net/

sudo apk add php81-dev
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-doc 8.1.34-r5

The PHP81 language runtime engine (documentation)

https://www.php.net/

sudo apk add php81-doc
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-dom 8.1.34-r5

PHP81 extension: DOM

https://www.php.net/

sudo apk add php81-dom
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-dom from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-embed 8.1.34-r5

PHP81 Embedded Library

https://www.php.net/

sudo apk add php81-embed
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-embed from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk92%

php81-enchant 8.1.34-r5

PHP81 extension: enchant

https://www.php.net/

sudo apk add php81-enchant
  • License: PHP-3.01 BSD-3-Clause LGPL-2.0-or-later MIT Zend-2.0
  • Architecture: x86_64
  • Source Package: php81
  • 1 dependencies
  • 1 provides
  • package manager index match
  • Matched by: Php81
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: php81-enchant from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation