News Feed
Sections




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

Gary Hockin's Blog:
Zend Framework 2 and a Restful Application
May 29, 2012 @ 10:56:03

In this new post to his blog Gary Hockin looks at how to create a simple RESTful web service with the features provided by the Zend Framework v2 (currently in beta).

After speaking to a prospective employer in a job interview, I was interested to try out the ZendMvcControllerRestfulController. With Zend_Json_Server in ZF1 having, shall we say, a less than sterling reputation, it was very interesting for me to see how the strategy has been implemented in ZF2. The starting point for this is simply a completely fresh clone of the ZF2 Skeleton Application. The aim is to simply allow the pre-created index controller to function as a Restful interface.

He walks you through the steps you'll need to recreate it in your application - setting up the ViewJsonStrategy, creating the router configuration for the RESTful handling and changing what the controller extends to give it the RestController's superpowers.

0 comments voice your opinion now!
zendframework2 rest webservice tutorial


blog comments powered by Disqus

Similar Posts

Chris Jones: Quick Debugging of PHP Scripts in Emacs with Geben and Xdebug

Chris Jones: Using the PHP CLI Webserver to Identify and Test Memory Issues in PHP

NETTUTS.com: A Beginnerís Introduction to HTTP and REST

DevShed: Building a Database-Driven Application with the Code Igniter PHP Framework

IBM developerWorks: A step-by-step guide to publishing your own PEAR channels


Community Events

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


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

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