安装php
Pecl下载Yaf源码
tar zxvf yaf-3.0.8.tgz 解压it
$ phpize
$ ./configure --with-php-config=/path/to/php-config
$ make && make installio
最后到php.ini添加 ast
[Yaf]
extension=yaf.so
yaf.environ="product"下载
至此,安装完毕。项目
初始化项目tools
将源码Git上的主分支下载到项目中的tmp临时文件中,在tmp/yaf-master/tools/cg中执行文件
./yaf_cg 项目名vi
output目录中就会生成一个最精简的Yaf项目
最后就将生成的项目 copy到项目目录下