LOTS of people asked me for the code, and I’m sorry it took me a while to upload it. You can find it on bitbucket: https://bitbucket.org/lornajane/restful-php-examples (just look for the “get source” button over on the right if you don’t want to clone the repo). Hope that helps and answers some questions where I didn’t have the full code in the blog posts.

Many thanks for all your comments, it’s great to get some feedback!