News Feed
Sections




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

David Makin:
Creating a simple REST application with Silex
December 27, 2013 @ 10:36:48

David Makin has put together a new post to his site showing you how to make a simple REST web service with Silex, the PHP microframework from the Symfony project.

So you have come to the conclusion that, rather than having the code to update customer details and that little fix to convert the date from GMT to UTC should happen in once place rather than being copied into several pieces of code, a REST service is the answer. Perhaps you just think you should know how to create a REST service. Either way this post is for you. In this post we will start off with a blank directory and go through installing Silex and getting it to serve a couple of simple routes.

He helps you get Silex installed via Composer and gets you started with a simple root and "stock code" route. He uses these to explain a bit about the framework's route handling and includes URLs to call that will execute them.

0 comments voice your opinion now!
silex microframework introduction beginner tutorial

Link: http://sleep-er.co.uk/blog/2013/Creating-a-simple-REST-application-with-Silex/

blog comments powered by Disqus

Similar Posts

Derick Rethans: Read Preferences wth the MongoDB PHP driver

PHPBuilder.com: BitMasks: Emulate Unix Permissions in PHP (Quickly)

Pádraic Brady's Blog: Complex Views with the Zend Framework - Part 3: Composite View Pattern

Dave Marshall's Blog: Defending against Cache Stampedes

SitePoint PHP Blog: 13 Steps to Get eZ Publish 5.x to Work on Homestead


Community Events





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


list configure release podcast interview developer wordpress application install api symfony laravel introduction community code bugfix threedevsandamaybe series library language

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