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

Lorna Mitchell's Blog:
PHP REST Server (Part 1 of 3)
Sep 01, 2008 @ 11:21:54

Lorna Mitchell has started a three part series on her blog detailing the process she went through to develop a REST server in PHP.

I recently had reason to write a REST server in PHP, which was very interesting. There aren't a whole lot of resources on this topic around so I thought I'd write an outline of what I did. There is quite a lot to it so I'm publishing in multiple sections - this is part 1, which covers the central functionality and handling the incoming request.

In this first part she talks about the wrapper class she developed and includes some sample code that does the initial handling of the request (reading from php://input and passing it off to a handle() method to the taken care of).

tagged: rest server tutorial wrapper class

Link: