Prototype for an object oriented streams API in PHP