hi all,

I've been looking into providing an API on a recent project i've been working on.. i've read around and have decided REST is the best approach in my situation.

The problem is, i've found plenty of tutorials on how to write PHP for third party API's, such as google, amazon etc... however I'm looking for some information on writing your own API in PHP.

I wish to recieved PUT, DELETE and GET commands over HTTP using REST, then process what I get and send some data back wrapped in XML... but can't find any information on how to do this.

Does anyone have any pointers, books or websites about this?
Many thanks
Sir P