a simple rest api for php by Corey Maynard (see http://coreymaynard.com/blog/creating-a-restful-api-with-php/ ).