Phil Sturgeon

Web developer, kayaker, outdoors madman and part-time alcoholic.


"PHP" articles

Tiny REST framework in PHP

Based on Twiny framework and my CodeIgniter REST server I have created a really simple RESTful framework that lets you use CodeIgniter style controllers without any of the extra weight of using a whole framework. It lets you handle GET, POST, PUT, DELETE requests with ease and return data in XML, JSON, HTML tables, Serialize, PHP syntax and CSV. Read More »

Posted: Apr 28, 2010 


Twiny-Framework: the framework small enough to tweet

Many frameworks say they are lightweight, quick and easy on your server, but none are as lightweight as my new "framework" which is so lightweight it can fit in a Tweet. Read More »

Posted: Dec 15, 2009 


How to: Create a Twitter feed with full syntax support

If you have a project that you would like to add a Twitter feed to, but do not want to add in a massive library for the one feed, take a look at this very simple PHP snippet that will give you full synatx support.
Read More »

Posted: Jul 28, 2009 


Poll: Will you use goto in PHP 5.3?

PHP 5.3 adds some great features such as lambda functions, namespaces and class constants, but one new feature "goto" in my eyes is a massvie step backwards. Read More »

Posted: Jun 24, 2009 


DateTime objects - Start month, end month, first Monday, etc

Throw away strtotime and date() and check out PHP's funky DateTime objects for much greater control over your dates. Read More »

Posted: Jan 12, 2009