News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Writing a RESTful Web Service with Slim
July 27, 2012 @ 10:53:30

On PHPMaster.com today there's a new tutorial showing you how to create a simple RESTful API with the help of the Slim PHP microframework.

Through a series of articles here at PHPMaster you've learned about what is REST and how it works. In this article, I'd like to show you how to create a RESTful web service using Slim, a PHP micro-framework inspired by Sinatra, a Ruby framework. It's well-suited for creating simple RESTful web services and comes with some minimal components like Router, Request, Response, and View. It's very simple, and is easy to understand and use.

He walks you through the basics of getting the framework downloaded and set up as well as showing you how to make some basic routes ("Hello World" style). He then uses the NotORM library to work with his database and, via a RESTful interface, give information about books, edit their information and add new ones.

0 comments voice your opinion now!
rest api slim microframework webservice tutorial


blog comments powered by Disqus

Similar Posts

PHPMac.com: Building and Installing Apache 2.2.2 and PHP 5.1.3 (or 5.1.4) on Mac OS X 10.4.6

Mike Purcell's Blog: CentOS - PHP - Install Memcached (with a d) Stack

MaltBlue.com: Use RouteMatch in Zend Framework 2 For Easy Routing

Jeremy Cook's Blog: Installing Imagick under Apache on Windows

DevShed: Creating AJAX Requester Objects with Abstract Factory Classes in PHP 5


Community Events

Don't see your event here?
Let us know!


example symfony2 framework release performance introduction application version series php7 api opinion extension conference community interview laravel library podcast voicesoftheelephpant

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework