Hostinicon
GET HOSTING FROM $3.95/MO PLUS A FREE YEAR ON TUTS+ (RRP $180). HURRY OFFER LIMITED. Check it out
Advertisement

How to Query Web Services with a Build Script

by
Gift

Get a free year on Tuts+ this month when you purchase a Siteground hosting plan from $3.95/mo

Do you hate that your favorite web service can't be used in your build scripts? Well, are you sure that's the case? I'll show you how to use a popular tool, Phing - which is essentially a port of the popular Apache Ant for PHP - to query the Nettuts+ Prefixr API in today's quick tip.


Final Sample Phing Project


Conclusion

The more I use Phing, the more I realize just how powerful it is. While many prefer Apache Ant for its portability, with Phing, I can use my existing PHP knowledge to create any new tasks or filters that I require. That's incredibly powerful and convenient. What's your build tool of choice?

Advertisement