My PHPConf 2014 (Taiwan) talk's sample code.