Thin Wrapper around rbenv for PHP version managment
Shell
Switch branches/tags
Nothing to show
Pull request Compare This branch is 33 commits behind CHH:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
install.sh

README.md

phpenv

rbenv based version managment for PHP.

This is a small install script which sets up rbenv in a separate directory for PHP versioning.

Requirements

You need Git installed.

Install

Clone this repository and run the install.sh on your shell. Then add ~/.phpenv/bin to your PATH and add eval $(phpenv init -) to your .bashrc.


For rbenv users: Make sure that ~/.rbenv/bin takes precedence in the PATH over ~/.phpenv/bin by placing it before, so rbenv gets used from ~/.rbenv.


After that, the phpenv command should be available. The phpenv command is exactly the same as rbenv except it operates on the ~/.phpenv directory.

To install versions just drop them to the ~/.phpenv/versions directory, just like in rbenv.

For convenienve you can use php-build to do this with one command:

$ php-build 5.3.8 ~/.phpenv/versions/5.3.8

Documentation

Please see the rbenv Project for documentation.

Thanks

Thank you Sam Stephenson for creating the awesome rbenv!