php-build 0,0 travis-ci vagrant

Builds PHP so that multiple versions can be used side by side.

3 years after

php-build Build Status

php-build is a utility for building versions of PHP to use them side by side with each other. The overall structure is loosly borrowed from Sam Stephenson's ruby-build.

Do you like php-build? You can buy me a beer by Gittipp-ing. Consider also Gittipp-ing one of the awesome contributors.



As phpenv plugin

With CHH/phpenv via installer

It's the standard way: installs phpenv in $HOME/.phpenv (default $PHPENV_ROOT value).

curl -L \
    | bash

See more on install CHH/phpenv + php-build/php-build (and other plugins), updating all of them when you want to!

With phpenv manually

Locate your phpenv directory:

% ls $HOME/.phpenv

Clone the Git repository into phpenv plugins directory:

% git clone git:// $HOME/.phpenv/plugins/php-build

Now you can use php-build as phpenv plugin, as follows:

% phpenv install <definition>

The built version will be installed into $HOME/.phpenv/versions/<definition>.

As standalone php-build

Clone the Git Repository:

% git clone git://

Then go into the extracted/cloned directory and run:

% ./

This installs php-build to the default prefix /usr/local.

To install php-build to an other location than /usr/local set the PREFIX environment variable:

% PREFIX=$HOME/local ./

If you don't have permissions to write to the prefix, then you have to run as superuser, either via su -c or via sudo.


Issue reports and pull requests are always welcome.

All contributions will be reviewed and merged by the core team:





php-build is released under the MIT License.

Related Repositories



A curated list of amazingly awesome PHP libraries, resources and shiny things. ...



PHP client library for Coveralls API. ...



A simple PHP build tool. ...



Compile scripts used to build PHP on multiple platforms ...



A curated list of amazingly awesome PHP libraries, resources and shiny things. ...

Top Contributors

CHH GrahamCampbell rogeriopradoj loicfrering hnw gerardroche henriquemoody yuya-takeyama ikari7789 fabiang jtakakura sanemat humanshell mlocher mizunashi-mana scalopus grota comutt lgrz y-uti DeepDiver1975 bcremer aenglander bitdeli-chef stof dwwoelfel eriksencosta francescolaffi BanzaiMan hnakamur


-   v0.10.0 zip tar
-   v0.9.0 zip tar
-   v0.9.0-dev zip tar
-   v0.9.0-beta3 zip tar
-   v0.9.0-beta2 zip tar
-   v0.8.0 zip tar
-   v0.7.0 zip tar
-   v0.6.2 zip tar
-   v0.6.1 zip tar
-   v0.6.0 zip tar
-   v0.5.0 zip tar
-   v0.4.0 zip tar
-   v0.3.0 zip tar
-   v0.3.0RC1 zip tar
-   v0.2.0 zip tar
-   v0.1.1 zip tar
-   v0.1.0 zip tar