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:
REST - Can You do More than Spell It? Part 2
May 04, 2012 @ 13:02:14

On PHPMaster.com today they've posted their series on "speaking REST" (part one is here), developing a PHP-based RESTful framework.

In the first article of his series, David explained how REST is more than an architectural pattern. It's a set of guiding principles that, if followed, can help you write scalable and robust applications. In the following articles, David will resume the discussion by looking at REST from the client-side of the equation. In this article though I'd like to focus on the server-side. You'll learn how to shift your thinking from the action-focused mindset that's prevalent in web development today to a more RESTful, resource oriented, approach, and see one way to structure your code and route URI requests in PHP.

He talks about the change in mindset it takes to create an effective, resource-focused RESTful service and shows some of the initial steps towards getting it all down in code (based on a simplified "front controller" that routes the request appropriately). The resources are defined as classes (like the "Restaurant" in their example) which then handles the type of request based on the request type (GET, POST, etc).

0 comments voice your opinion now!
rest webservice introduction front controller resource


blog comments powered by Disqus

Similar Posts

Chris Hartjes' Blog: How Easy Are Web Services in CakePHP 1.2? Really Easy!

Christian Wenz's Blog: WSO2 Web Services Framework (WSF)/PHP v1.0.0 Released

ThinkPHP Blog: Accessing NTLM secured resources with PHP

Alexander Netkachev's Blog: Controller/Action versus Folder/Page

Zend Developer Zone: Zend Framework Beta 0.9.3 Released


Community Events

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


series interview opinion community video php7 voicesoftheelephpant release laravel5 framework laravel language version introduction extension example api security library podcast

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