News Feed
Sections




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

Matthew Weier O'Phinney's Blog:
Exposing Service APIs via Zend Framework
October 26, 2009 @ 09:09:39

Matthew Weier O'Phinney has a new post to his blog looking at using the Zend Framework to create various types of API interfaces - SOAP, XML-RPC, JSON_RPC and AMF.

The hubbub surrounding "Web 2.0" is around sharing data. In the early iterations, the focus was on "mashups" -- consuming existing public APIs in order to mix and match data in unique ways. Now, more often than not, I'm hearing more about exposing services for others to consume. Zend Framework makes this latter trivially easy via its various server classes.

He suggests splitting out the API from the rest of the application, though. The extra overhead caused by the normal MVC process could increase the response time. He proposes a method that moves them out of the main site's root and uses rewrite rules to get things to the correct place (even for multiple request format types). The mod_rewrite example for this is included as well as a bit of sample code showing how the request would work.

0 comments voice your opinion now!
webservice zendframework modrerwite


blog comments powered by Disqus

Similar Posts

Matthew Weier O'Phinney's Blog: Applying ACLs to Models

Padraic Brady's Blog: Zend Framework Proposal: Zend\Html\Filter (HTML Sanitisation And Manipulation)

Padraic Brady's Blog: Zend Framework Caching (Parts 1, 2 & 2b)

Zend Developer Zone: Using Zend_Tool to start up your ZF Project

Zend Developer Zone: Zend Framework Beta 0.9.1 Released


Community Events





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


library opinion package release version security interview tool laravel language community voicesoftheelephpant application podcast framework series composer symfony update introduction

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