Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

PHPBrew review

Free#14 of 30 in Runtime Version Managers

A flexible open-source PHP version manager for custom local environments.

7.7/10Editor score
PHPBrew7.7 Visit PHPBrew

Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026

PHPBrew is an open-source command-line version manager for PHP developers who need control over local runtimes. It builds and installs multiple PHP versions, lets users switch versions temporarily or permanently, and supports installation in a user home directory without root permissions. System-wide installation is also supported. Its verified platform scope covers macOS and Linux, including several Linux distribution families.

The main strength is build control. PHPBrew can configure PHP builds with variants such as PDO, MySQL, SQLite, and debug, then install extensions from PHP source or PECL. It also manages PHP-FPM processes and configuration. Project-specific switching through .phpbrewrc files can pin a PHP version to a project directory, while Bash, Zsh, and Fish integrations support different shell environments. Homebrew and MacPorts are also supported for installation workflows.

PHPBrew is a strong fit for PHP developers who need several locally built runtimes, project-level version switching, or PHP configurations tailored to specific extensions and debugging needs. Its open-source model and free plan suit users who prefer a self-managed tool. The trade-off is its command-line, source-building approach: developers must work with local build configuration rather than a graphical interface or a simpler packaged workflow. Teams or individuals requiring Windows support, or those who want a less configuration-focused runtime manager, should consider an alternative. For macOS and Linux users comfortable managing PHP from the shell, PHPBrew offers a focused set of version, build, extension, and process-management controls.

PHPBrew pros and cons

  • Where it wins
    • Builds multiple PHP versions with configurable variants and extensions
    • Automatically switches PHP versions by project with .phpbrewrc
    • Supports user-level installs, PHP-FPM, and several shell integrations
  • Where it doesn't
    • Limited to macOS and Linux
    • Source builds require local configuration and compilation
    • Command-line workflow may not suit users seeking a graphical tool

PHPBrew fact sheet, pricing and score →

Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.

Last updated · How we research and update