some extensions for php framework YAF(https://github.com/laruence/php-yaf)