pkg.soopen package index

brew / rank 4123

Install phpbrew with Homebrew

Brew & manage PHP versions in pure PHP at HOME. Version 2.2.0 via Homebrew; verified 2026-09-11.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install phpbrew

local Homebrew formula metadata

overview

Package summary

Brew & manage PHP versions in pure PHP at HOME

Commands and aliases

  • phpbrew

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • Early project: Yo-An Lin created PHPBrew as a pure-PHP tool for managing locally built PHP versions.
  • PHP 5 era: The documented workflow supported old PHP releases, compile variants, PECL extensions, Apache modules, and PHP-FPM.
  • Current project: PHPBrew remains available as a Homebrew formula and through its official PHAR releases.

Related projects

  • PHP source releases are the runtimes PHPBrew builds.
  • PECL supplies many extensions handled by PHPBrew’s extension commands.
  • Homebrew and MacPorts prefixes can be detected when resolving build dependencies.

Sources

  • Official documentation: https://phpbrew.github.io/phpbrew
  • Official wiki: https://github.com/phpbrew/phpbrew/wiki
  • source_facts.package-manager

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime 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
~/.phpbrew/config.yaml~/.phpbrew/bashrc./.phpbrewrc

executables

Installed executables

CommandKindExposureNote
phpbrewcliglobal executable

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-09-19
manager version2.2.0
manager updated2026-09-11
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/phpbrew/phpbrew

install metadata

Package metadata

Package keybrew:phpbrew
Version2.2.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/phpbrew
Homepagehttps://phpbrew.github.io/phpbrew
Repositoryhttps://github.com/phpbrew/phpbrew
Upstream docshttps://phpbrew.github.io/phpbrew
LicenseMIT
Source archivehttps://github.com/phpbrew/phpbrew/releases/download/2.2.0/phpbrew.phar
Last updated2026-09-11T12:46:31Z
Pulseupdated
Dependenciesphp@8.4
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namephpbrew
Version Scheme0
Revision1
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

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

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