PHPBrew
phpbrew.github.io
- Free plan
- macOS
- Linux
- Self-hosted
What PHPBrew is
PHPBrew builds PHP from source and installs multiple versions in a user's home directory, including for setups where the user does not have root permission. It is free and supports Linux and macOS. Build options are grouped into variants, with choices such as PDO, MySQL, SQLite, and debug builds. Users can temporarily select a version or change the default, with switching integrated into bash and zsh; project version pinning is also listed. PHPBrew installs extensions from PHP source or PECL and can create configuration to enable them. For web servers, it can compile Apache PHP modules and provides PHP-FPM management commands when PHP is built with the +fpm variant. Its library lookup prefix can use Homebrew, MacPorts, Debian, Ubuntu, or a custom path. Development packages are needed before building. The project cautions that builds of no-longer-supported PHP versions are not guaranteed, and related issues for versions older than 5.4 will not be fixed. It identifies its license as MIT and points users to troubleshooting and wiki documentation.
Who it suits
PHPBrew suits developers who need to build and manage PHP versions in their home directory, including without root permission. It is intended for Linux and macOS users who can install the required development packages.
Good to know, and what to watch
- Free to use.
- Supports temporary and default version switching.
- Integrates with bash and zsh.
- Installs extensions from PHP source or PECL.
- Supports project version pinning.
- Development packages are required to build PHP.
- Unsupported older PHP builds are not guaranteed.
- Issues for versions older than 5.4 will not be fixed.
Plans
Every plan and pricePHPBrew
Free plan
The verdict
PHPBrew offers a free way to build and manage PHP versions in a home directory, with version switching, extension installation, and several build variants. Check the development-package requirement and the support limits for older PHP versions before relying on a particular build.
What the maker publishes
- Build options
- It simplifies PHP configure options into variants and supports choices such as PDO, MySQL, SQLite, and debug builds. source
- 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. source
- Extensions
- It installs extensions from PHP source or PECL and can create configuration to enable them. source
- Installation requirements
- Building PHP requires development packages to be installed first. source
- Integrations
- Its library lookup prefix supports Homebrew, MacPorts, Debian, Ubuntu, or a custom path. source
- Intended users
- PHPBrew is for users who want to build and manage PHP versions in their home directory, including without root permission. source
- License
- The project identifies its license as MIT. source
- Purpose
- PHPBrew builds and installs multiple PHP versions in the user's home directory. source
- Support
- The project directs users to its troubleshooting page and documentation wiki. source
- Version switching
- It can temporarily use a PHP version or switch the default version, and integrates with bash and zsh. source
- Web server support
- It can compile Apache PHP modules and provides PHP-FPM management commands when PHP is built with the +fpm variant. source
Checked against the maker's pages on 3 Oct 2026.