Nice article, precisely shows how easy it is to come up with restful api server using PHP

I have taken similar approach to create Restler framework that takes public methods of your classes and exposes them as RESTful api with various formats including JSON, XML, AMF, Binany Plist, XML Plist, YAML, JSONP etc

Check it out and let me know what you think!