chruby vs PHPBrew
chruby
github.comPHPBrew
phpbrew.github.ioSide by side
| Figure | chruby | PHPBrew |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Self-hosted | — | Yes |
| Plans published | 1 | 1 |
| Spec score · Runtime Version Managers | 7.9 (#7) | 7.4 (#18) |
| Integrations | The project wiki links usage instructions for Capistrano, Chef, Cron, Emacs, Pow, Puppet, Sudo, Vim, and Fish. | Its library lookup prefix supports Homebrew, MacPorts, Debian, Ubuntu, or a custom path. |
| License | The repository identifies its license as MIT. | The project identifies its license as MIT. |
| Purpose | chruby changes the current Ruby version in a shell. | PHPBrew builds and installs multiple PHP versions in the user's home directory. |
Plans
In their own words
chruby
chruby is a free, MIT-licensed shell utility for changing the Ruby version used in a session. Selecting a Ruby updates PATH and sets GEM_HOME and GEM_PATH for that installation. It can match installed Ruby names fuzzily and uses the system Ruby when no selection is made. Optional automatic switching checks the current and parent directories for a .ruby-version file. chruby supports bash 3 or later and zsh on Linux and macOS. Installation instructions cover a release tarball, Homebrew, Arch Linux AUR, Fedora Copr, and FreeBSD ports. Additional Ruby implementations can be installed with ruby-install or ruby-build. The project provides guidance for integrations including Capistrano, Chef, Cron, Emacs, Pow, Puppet, Sudo, Vim, and Fish. Releases are PGP signed, with verification instructions, and the codebase is described as about 100 lines with tests.
PHPBrew
PHPBrew builds and installs multiple PHP versions in a user’s home directory, including without root permission. It is intended for Linux and macOS and compiles PHP from source. Build variants simplify configuration choices such as PDO, MySQL, SQLite, and debug support. Users can temporarily select a version or change the default, with bash and zsh integration for switching and project version pinning. PHPBrew installs extensions from PHP source or PECL and can create configuration to enable them. It can compile Apache PHP modules and provides PHP-FPM management commands when PHP is built with the +fpm variant. Library lookup can use Homebrew, MacPorts, Debian, Ubuntu, or a custom path. Development packages must be installed before building. The project uses the MIT license and directs users to troubleshooting and wiki documentation. Builds of PHP versions no longer officially supported are not guaranteed, and issues involving versions older than 5.4 will not be fixed. The listed plan costs nothing.