phpDocumentor 安装及生成帮助文档
phpDocumentor的官方文档 https://www.phpdoc.org
如果网站打不开,可以使用composer来进行安装
https://packagist.org/packages/phpdocumentor/phpdocumentor
-t 生成文件放在哪个目录?
-d 编译哪个目录
目录,那么我建议是application下的 controller model service 这三个目录
phpdoc run -d /data/www/weixin/models/ -d /data/www/weixin/controllers/ -d /data/www/weixin/services/ -t /data/www/weixin/docs/
把上边的三个目录 生成的文档在 /data/www/weixin/docs/
把生成的目录 放在 -t 这个目录。
打开后,右侧有安装使用说明:
phpDoc的php5的环境下安装比较顺利,跑的非常好。
需要使用 pear 这个
which pear
查看pear在什么位置 which pear
查看php在什么位置 which php