Last night I was able to put the finishing touches on Meditation, the PHP REST API Framework. This is a simple set of 2 classes to facilitate the building of RESTful PHP applications.
As I mentioned in a previous entry "
The Third Taste... Not So much..", PHPs handling of the PUT and DELETE methods are lacking. This is where Meditation comes in.
With Meditation, you get an instance of the Lotus singleton, which is an object-wraper around the request. You give it some callbacks that handle the methods you need, and it handles most of the low-level grunt work for you. The documentation is all available on my wiki right
here, and the Alpha release is
available here.
There is another singleton, Lily, which is an object-wrapper around the response. Currently it just handles responding to Client errors (HTTP 4xx messages) and Server errors (HTTP 5xx message), but in the future, it will also handle 2xx and 3xx messages as well.
I'm
eating my own dogfood and using this in my funky
Tile Editor.
Update: meditation is now up to version 0.5.1. Please check the trackbacks to this entry for future versions.