News Feed
Sections




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

NETTUTS.com:
Working with RESTful Services in CodeIgniter
February 04, 2010 @ 13:03:58

Phil Sturgeon has posted a new tutorial over on the NETTUTS.com site about working with REST services in CodeIgniter. He shows both sides of things - using REST services and making them.

CodeIgniter is becoming well known for its power as a PHP based web application framework, but it's not often that we see examples of it being used for anything else. Today we'll learn how we can use CodeIgniter to create a RESTful API for your existing web applications, and demonstrate how to interact with your own API or other RESTful web-services, such as Facebook and Twitter.

He has the sample code hosted over on his github account where you can pull down the source and follow along from the beginning. His application is created to be flexible enough for multiple output formats (xml, json, html) and respond correctly to the HTTP request types like GET, POST, PUT, DELETE. On the other side he shows how to consume the services via different methods like file_get_contents and cURL.

0 comments voice your opinion now!
rest webservice codeigniter tutorial consume create


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: How to Create Your Own WordPress Shortcodes

Juan Treminio: Unit Testing Tutorial Part V: Mock Methods and Overriding Constructors

Kenny Meyers' Blog: How CodeIgniter Works (Video from EECI 2010)

PHPMaster.com: Getting Started with Fuel CMS, Part 2

php|architect: What Will Power the Future of the Internet: REST or SOAP?


Community Events





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


threedevsandamaybe bugfix symfony community series development zendserver framework code tips podcast deployment list interview laravel release introduction conference language api

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