具体步骤以下:php
1.下载php-yaf源码:git
git clone https://github.com/laruence/php-yaf/
2.运行代码生成工具:github
/Users/helloxiaozhu/php-yaf/tools/cg/yaf_cg demo
会在yaf_cg文件相同的目录下建立一个output文件夹:工具
/Users/helloxiaozhu/php-yaf/tools/cg/output
进入以后就会看见你刚才建立的文件夹:demospa
demo文件目录结构以下:3d