macOS
brew install php@8.2local Homebrew formula metadata
安装
brew install php@8.2local Homebrew formula metadata
sudo apk add php82Alpine Linux edge package indexes · php82 · 来源: dl-cdn.alpinelinux.org
sudo dnf install phpFedora Rawhide package metadata · php · 来源: dl.fedoraproject.org
nix profile install nixpkgs#phpnixpkgs package indexes · php · 来源: raw.githubusercontent.com
sudo pacman -S phpArch Linux sync databases · php · 来源: geo.mirror.pkgbuild.com
sudo zypper install php8openSUSE Tumbleweed package metadata · php8 · 来源: download.opensuse.org
winget install --id PHP.PHP.8.2 -eWindows Package Manager source index · PHP.PHP.8.2 · 来源: cdn.winget.microsoft.com
scoop install versions/php82Scoop official bucket manifest trees · bucket/php82.json · 来源: api.github.com
choco install phpChocolatey community package catalog · php · 来源: community.chocolatey.org
概览
General-purpose scripting language
历史
PHP 8.2 is a branch-pinned PHP runtime for applications, extensions, and build pipelines that target the PHP 8.2 language and ABI contract.
PHP began with Rasmus Lerdorf's CGI tools in 1994 and was released publicly in 1995. Parser rewrites produced PHP 3 and the Zend Engine lineage, followed by the performance-oriented PHP 7 engine and the modern PHP 8 series.
PHP 8.2.0 was released on 8 December 2022.
PHP 8.2 continued PHP 8's type-system evolution with readonly classes, standalone true, false, and null types, and Disjunctive Normal Form types. Deprecation of dynamic properties also encouraged applications and frameworks to declare their object models more explicitly.
The branch became a compatibility target for applications and libraries migrating from PHP 7 or earlier PHP 8 releases. A versioned formula preserves that target for testing, production parity, and extension builds.
The formula supplies php for command-line execution, php-fpm and php-cgi for web serving, phpdbg for debugging, phpize and php-config for native-extension builds, PEAR/PECL tooling, and PHAR commands.
PHP loads php.ini according to its build and SAPI search order; .user.ini can provide per-directory settings for CGI/FastCGI deployments. The php --ini command identifies the effective configuration.
Homebrew distributes PHP 8.2 as a keg-only versioned formula so it can coexist with other PHP branches. Package maintainers care about the branch because Composer constraints, extension ABIs, framework support matrices, and CI jobs commonly target PHP minor lines.
安全态势
没有找到 php@8.2 的匹配本地密钥处理 manifest。软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
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.ini可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
| 没有可执行文件数据。 | |||
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:php@8.2 |
|---|---|
| 版本 | 8.2.35 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/php@8.2 |
| 主页 | https://www.php.net/ |
| 上游文档 | https://www.php.net/ |
| 许可证 | PHP-3.01 AND Zend-2.0 AND BSL-1.0 AND MIT AND Apache-1.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 |
| 源码归档 | https://www.php.net/distributions/php-8.2.35.tar.xz |
| 最后更新 | 2026-10-25T12:29:56+02:00 |
| Pulse | updated |
| 依赖 | 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 |
| 构建依赖 | httpd, pkgconf |
| macOS 提供的库 | bzip2, libedit, libffi, libxml2, libxslt |
| Bottle | 可用 (于 arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | declared |
| 注意事项 | To enable PHP in Apache add the following to httpd.conf and restart Apache: LoadModule php_module $HOMEBREW_PREFIX/opt/php@8.2/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.2/ |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | php@8.2 |
| Version Scheme | 0 |
| Revision | 1 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
PHP.PHP.8.2
winget install --id PHP.PHP.8.2 -ephp82 8.2.33-r0
The PHP82 language runtime engine
sudo apk add php82php82-apache2 8.2.33-r0
PHP82 Module for Apache2
sudo apk add php82-apache2php82-bcmath 8.2.33-r0
PHP82 extension: BC Math
sudo apk add php82-bcmathphp82-bz2 8.2.33-r0
PHP82 extension: Bzip2
sudo apk add php82-bz2php82-calendar 8.2.33-r0
PHP82 extension: Calendar
sudo apk add php82-calendarphp82-cgi 8.2.33-r0
PHP82 Common Gateway Interface
sudo apk add php82-cgiphp82-common 8.2.33-r0
The PHP82 language runtime engine (common config)
sudo apk add php82-commonphp82-ctype 8.2.33-r0
PHP82 extension: ctype
sudo apk add php82-ctypephp82-curl 8.2.33-r0
PHP82 extension: cURL
sudo apk add php82-curlphp82-dba 8.2.33-r0
PHP82 extension: DBA
sudo apk add php82-dbaphp82-dbg 8.2.33-r0
The PHP82 language runtime engine (debug symbols)
sudo apk add php82-dbgphp82-dev 8.2.33-r0
The PHP82 language runtime engine (development files)
sudo apk add php82-devphp82-doc 8.2.33-r0
The PHP82 language runtime engine (documentation)
sudo apk add php82-docphp82-dom 8.2.33-r0
PHP82 extension: DOM
sudo apk add php82-domphp82-embed 8.2.33-r0
PHP82 Embedded Library
sudo apk add php82-embed来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.