Meditation 0.6 review
DownloadMeditation is a series of helper classes for PHP5 that are used to facilitate in building RESTful APIs for your web application. M
|
|
Meditation is a series of helper classes for PHP5 that are used to facilitate in building RESTful APIs for your web application.
Meditation project was originally built because PHP doesn’t have very good handling of PUT and DELETE requests. The goal of Meditation is to be an extremely light framework with which you an use to build your web application.
You won't find things like XML parsing, template engines, or model view controllers here. However, because it is extremely light, you should be able to hook Meditation up to any buzzword compliant system you with. For a list of all available features of Meditation, see MeditationFeatures.
The bulk of Meditation consists (so far) of 2 singletons. The Lotus and the Lily. Lotus handles the request data, and dispatches the requests to your objects or functions. Lily handles the response. For a good example, see the MeditationExample.
The name Lotus was chosen while I was working on another project of mine: "Fuchi, the idea pool". It stuck, so I kept it around. I needed a name for the response object, so I thought Lily would work well as a name because a lily and a lotus are both flowers that grow in a pond. Meditation just came naturally, because the Lotus is a sacred flower to Buddhists, and it is a framework for building RESTful applications.
What's New in This Release:
Processors for HTTP authentication (basic, digest, wsse) were added.
A procedural interface for request processors was added.
Meditation can now handle Request Entities of any type, as long as you build the content handler for it.
HTTP method overriding is handled through the request parameter X-Rest-Method.
A new Gate Persistor was built (SqlGatePersistor), and while it is still abstract, it fills in most of the details.
MySQL, PostgreSQL, or Oracle based persistance mechanisms
should be easy to build on top.
General code cleanup and lots of minor fixes and additions were done.
Meditation 0.6 keywords