Phing is a project build system based on Apache ant. You can do anything with Phing that you could do with a traditional build system like Gnu make, and Phing's use of simple XML build files and extensible PHP "task" classes make it an easy-to-use and highly flexible build framework.
Phing is a project build system based on Apache ant. You can do anything with Phing that you could do with a traditional build system like Gnu make, and Phing's use of simple XML build files and extensible PHP "task" classes make it an easy-to-use and highly flexible build framework. Phing comes packaged with numerous out-of-the-box operation modules (tasks), and an easy-to-use OO model for adding your own custom tasks. (copied from the Phing documentation)
Phing provides the following features:
- Simple XML buildfiles
- Rich set of provided tasks
- Easily extendable via PHP classes
- Platform-independent: works on UNIX, Windows, MacOSX
- No required external dependencies
- Built & optimized for ZendEngine2/PHP5
Useful resources:
Hello World Example
Contents of build.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project name="HelloWorld" default="world" basedir=".">
<target name="world" depends="message">
<echo message="World!" />
</target>
<target name="message">
<echo message="Hello, " />
</target>
</project>
Executed by running phing
or phing world
$ phing world
Buildfile: /tmp/phingtest/build.xml
HelloWorld > message:
[echo] Hello,
HelloWorld > world:
[echo] World!
BUILD FINISHED
Total time: 0.0940 seconds
Installing via Composer
{
"require": {
"phing/phing": "2.5.0"
},
}