PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.
These are slides from my talk during the Unconference at the Dutch PHP 2011 Conference (Amsterdam). During this talk I gave an overview of the features and how to use, adapt and extend Phing.
66. Sample Task class SampleTask extends Task { private $var ; public function setVar($v) { $this-> var = $v; } public function main() { $this->log( "value: " . $this-> var ); } }
67. Sample Task < project name = "Example" default = "default" > < taskdef name = "sample" classname = "phing.tasks.my.SampleTask" /> < target name = "default" > < sample var = "Hello World" /> </ target > </ project >
68. Ad Hoc Extension < target name = "main" > <adhoc-task name = "foo" > <![CDATA[ class FooTest extends Task { private $bar; function setBar($bar) { $this->bar = $bar; } function main() { $this->log("In FooTest: " . $this->bar); } } ]]> </ adhoc-task > <foo bar = "TEST" / > </ target >