FREEDOM251

Freedom251 › Runtime Version Managers

PHPBrew

Free plan LinuxMacSelf-hosted

Visit PHPBrew Alternatives Pricing

PHPBrew's own site

What PHPBrew is

PHPBrew builds and manages multiple PHP versions in your home directory, including for users who do not have root permission. It builds PHP from source and groups configure choices into variants, with options such as PDO, MySQL, SQLite, and debug builds. You can temporarily use a version or switch the default, with version switching integrated into bash and zsh. PHPBrew also supports project version pinning and can install extensions from PHP source or PECL, then create configuration to enable them. For web server use, it can compile Apache PHP modules; PHP-FPM management commands are available when PHP is built with the +fpm variant. Its library lookup prefix supports Homebrew, MacPorts, Debian, Ubuntu, or a custom path. PHPBrew is free under the MIT License and is intended for Linux and macOS. Building PHP requires development packages first. The project warns that builds of PHP versions no longer officially supported are not guaranteed, and says issues involving versions older than 5.4 will not be fixed.

Who it suits

PHPBrew suits developers who need to build and switch among PHP versions in their home directory, including without root access. It is for Linux and macOS users comfortable installing development packages before building PHP.

What it does well

  • Builds multiple PHP versions in a home directory
  • Switches versions through bash and zsh
  • Supports project version pinning
  • Installs extensions from PHP source or PECL
  • Free and MIT-licensed

What to know first

  • Development packages are required before building
  • Unsupported older PHP builds are not guaranteed
  • Issues for versions older than 5.4 will not be fixed

Limits

PHPBrew is free. Building PHP requires development packages, and builds of versions no longer officially supported are not guaranteed; related issues for versions older than 5.4 will not be fixed.

Plans

PlanBilled and limitsPrice
PHPBrewNo paid plans stated · Requires development packages to build PHP · Unsupported older PHP versions may fail to buildFree

As phpbrew.github.io lists them, read 3 Oct 2026. The maker's own page has the final word.

Getting started

  1. Visit https://phpbrew.github.io/phpbrew/.
  2. Install the development packages needed to build PHP.
  3. Install PHPBrew in a Linux or macOS environment.
  4. Choose PHP build variants such as PDO, MySQL, SQLite, or debug.
  5. Use bash or zsh integration to select a PHP version or change the default.

Verdict

PHPBrew offers source builds, version switching, extensions, and project pinning for users managing PHP locally. Account for development-package prerequisites and the stated limits on older PHP versions.

Questions

How much does PHPBrew cost?

PHPBrew is free; no paid plan is stated.

Which platforms does it support?

It is intended for Linux and macOS.

Does PHPBrew require root permission?

It builds and installs PHP versions in the user's home directory, including for users who want to manage PHP without root permission.

What license does PHPBrew use?

The project identifies its license as MIT.

What do I need before building PHP?

Development packages must be installed first.

Does it support PHP-FPM?

It provides PHP-FPM management commands when PHP is built with the +fpm variant.

Facts from PHPBrew's own pages

Build options
It simplifies PHP configure options into variants and supports choices such as PDO, MySQL, SQLite, and debug builds. · phpbrew.github.io, 3 Oct 2026
Compatibility limit
The project says builds of PHP versions no longer officially supported are not guaranteed, and related issues for versions older than 5.4 will not be fixed. · phpbrew.github.io, 3 Oct 2026
Extensions
It installs extensions from PHP source or PECL and can create configuration to enable them. · phpbrew.github.io, 3 Oct 2026
Installation requirements
Building PHP requires development packages to be installed first. · github.com, 3 Oct 2026
Integrations
Its library lookup prefix supports Homebrew, MacPorts, Debian, Ubuntu, or a custom path. · phpbrew.github.io, 3 Oct 2026
Intended users
PHPBrew is for users who want to build and manage PHP versions in their home directory, including without root permission. · phpbrew.github.io, 3 Oct 2026
License
The project identifies its license as MIT. · github.com, 3 Oct 2026
Purpose
PHPBrew builds and installs multiple PHP versions in the user's home directory. · phpbrew.github.io, 3 Oct 2026
Support
The project directs users to its troubleshooting page and documentation wiki. · github.com, 3 Oct 2026
Version switching
It can temporarily use a PHP version or switch the default version, and integrates with bash and zsh. · phpbrew.github.io, 3 Oct 2026
Web server support
It can compile Apache PHP modules and provides PHP-FPM management commands when PHP is built with the +fpm variant. · github.com, 3 Oct 2026

Where PHPBrew stands on Freedom251

Look at these too