Code I demonstrated during the Event Driven Applications Talk at Lone Star PHP 2013