Installing Phing


The preferred method to install Phing is through PEAR and the Phing PEAR channel. You can install Phing by adding the channel to your PEAR environment and then installing Phing using the phing channel alias and phing package name:

$ pear channel-discover
$ pear install [--alldeps] phing/phing

Note: if you would like to install an unstable version of Phing (alpha or beta), install as follows:

$ pear install phing/phing-beta
$ pear install phing/phing-alpha

For more info, refer to the PEAR channel.


Install Phing by adding a dependency to phing/phing to the require-dev or require section of your project's composer.json configuration file, and running 'composer install':

    "require-dev": {
        "phing/phing": "2.*"


Download the Phar archive. The archive can then be executed by running:

$ php phing-latest.phar

Manual install

The full Phing package has a more traditional directory organization and contains the full documentation, test scripts, and build.xml files for (e.g.) building the PEAR-installable package. Please download one of the packages below if you would like to install the full Phing package.

Last modified 14 months ago Last modified on 10/13/2016 11:36:09 AM