News Feed
Sections




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

ZendCasts.com:
Building a JSON Endpoint with SLIM (Part 1)
October 26, 2011 @ 10:51:45

On ZendCasts.com today, the next part of their series looking at using the Slim microframework has been posted. This is part one of a tutorial building a JSON endpoint for a web service.

You'll need some of the base that he created in this previous screencast to follow along (the basic structure, really). His takes his basic "hello world" application and builds on it to add a "model" to pull name data from and has the "/names" action respond with a JSON-formatted message (and an "application/json" content-type). His "model" pulls the data out with findAll() and find() methods.

You can grab the source to follow along.

0 comments voice your opinion now!
json tutorial slim microframework message webservice endpoint


blog comments powered by Disqus

Similar Posts

Tim Koschuetzki's Blog: How To Transform HTML To Textile Markup - The CakePHP TextileHelper Revisite

Michelangelo van Dam's Blog: Single User Zend_Service_Twitter

Content with Style Blog: Deploying PHP applications with Vlad and SVN

NetTuts.com: Programming With Yii2: Exploring MVC, Forms and Layouts

Hari KT: Aura Input Form Inside Slim Framework


Community Events

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


community podcast api application project list symfony composer yii2 opinion programming part2 interview series introduction laravel php7 example language framework

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