PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information

Federico Cargnelutti's Blog: Building a RESTful Web API with PHP and Apify

Note: This article was originally published at PHPDeveloper on 12 September 2011.
PHPDeveloper

Federico Cargnelutt has a new post to his blog showing you how to create a REST API for your site using the Apify (complete with a shiny new 1.0 release).

Web services are a great way to extend your web application, however, adding a web API to an existing web application can be a tedious and time-consuming task. Apify takes certain common patterns found in most web services and abstracts them so that you can quickly write web APIs without having to write too much code.

Some code snippets are included to build a simple REST service - first some examples with user handling then a more fleshed out example of a controller that lets you fetch "post" information as pulled from a model. A screencast has also been posted showing the library in action.