macOS
brew install phpbrewlocal Homebrew formula metadata
brew / rank 4123
Brew & manage PHP versions in pure PHP at HOME. Version 2.2.0 via Homebrew; verified 2026-09-11.
install
brew install phpbrewlocal Homebrew formula metadata
overview
Brew & manage PHP versions in pure PHP at HOME
history
PHPBrew is a PHP version and build manager that installs multiple PHP runtimes under a user-controlled directory and switches between them from the shell.
PHPBrew was created by Yo-An Lin, with Márcio Almada also credited by the official documentation. It is implemented in PHP and was designed to build and manage multiple PHP versions without requiring system-wide installation.
PHPBrew follows the language-version-manager pattern popularized in developer tooling: versions are installed beneath the user’s home directory and can be selected per shell. Homebrew distributes the PHPBrew command itself, while PHPBrew compiles the requested PHP runtimes.
Users initialize shell integration with `phpbrew init`, build a runtime with `phpbrew install`, and select versions with `phpbrew use` or `phpbrew switch`. Additional commands install extensions, edit php.ini, and manage PHP-FPM.
PHPBrew appeals to package-oriented developers because it makes PHP build variants explicit and reproducible at the command line. Its variant system can combine database, debugging, web-server, and extension options while accommodating dependency prefixes from Homebrew, MacPorts, Debian, and Ubuntu.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
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.
~/.phpbrew/config.yaml~/.phpbrew/bashrc./.phpbrewrcexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
phpbrew | 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.
https://github.com/phpbrew/phpbrew
install metadata
| Package key | brew:phpbrew |
|---|---|
| Version | 2.2.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/phpbrew |
| Homepage | https://phpbrew.github.io/phpbrew |
| Repository | https://github.com/phpbrew/phpbrew |
| Upstream docs | https://phpbrew.github.io/phpbrew |
| License | MIT |
| Source archive | https://github.com/phpbrew/phpbrew/releases/download/2.2.0/phpbrew.phar |
| Last updated | 2026-09-11T12:46:31Z |
| Pulse | updated |
| Dependencies | php@8.4 |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | phpbrew |
| Version Scheme | 0 |
| Revision | 1 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source 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.