News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Lorna Mitchell:
First Phing Plugin
March 25, 2013 @ 10:49:23

In the latest post to her site, Lorna Mitchell walks you through the creation of a first Phing plugin, an extension to the popular PHP-based build tool.

I'm a huge fan of Phing and use it regularly for build and deployment tasks. Often, I'll ask about a plugin that I wish existed, and get a very courteous "patches welcome" from the nice people in the #phing channel on freenode. This has happened a few times, so I thought I should probably look at how to make a new phing plugin, this article shows you how to make the simplest thing I could think of: a simple "hello world" plugin.

She points you to the location to grab the latest version of the tool (the github repository) and how to define a configuration file for your test runs. Then she includes the sample code showing how to create the "HelloTask" plugin. It takes an input value of "name" and displays a greeting when executed. She shows the syntax for defining this in the XML build file and the sample result when executed.

0 comments voice your opinion now!
phing plugin install build configuration xml helloworld task


blog comments powered by Disqus

Similar Posts

Chris Hartjes' Blog: You Asked For It: Chris' Awesome But Short Guide To Deployment Using Phing

MaltBlue.com: Zend Form Mastery with Zend Config - Part 1, Custom Filter Paths

Content with Style: Zend Framework with nginx and php-fastcgi

Community News: PHPWeekender Full Slides Posted

Lorna Mitchell's Blog: Downgrading a PECL Module


Community Events

Don't see your event here?
Let us know!


voicesoftheelephpant list interview library example community language framework laravel version security opinion laravel5 series introduction extension php7 api release podcast

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework