您的位置 首页 php

phpDocumentor安装与使用

通过 pear 安装phpDocumentor2

$ pear channel-discover pear.phpdoc.org
$ pear install phpdoc/phpDocumentor-beta 

因为phpDocumentor2是通过xml的方式来读写模板

安装php-xml

$ wget  /etc/ yum .repos.d/graphviz-rhel.repo$ yum install graphviz 

使用phpDocumentor2

phpdoc -d指定文件夹,-t输出文件夹,–template使用模板

$ phpdoc -d /mnt/siteroot/im.crackedzone.com/ -t /mnt/siteroot/im.crackedzone.com/docs --template responsive</pre> 

当然如果不习惯phpDocumentor2,也可以安装phpDocumentor1,下载 地址

#1.5pear install PhpDocumentor-1.5.0a1#1.4.2pear install PhpDocumentor-1.4.2wget  

由于模板的关系1.5版本一下都是使用iso-8859-1的 编码 ,所以为了防止乱码

转化编码防止乱码

find ./ -name '*.tpl' | xargs sed -i 's/iso-8859-1/ utf-8 /g' 

文章来源:智云一二三科技

文章标题:phpDocumentor安装与使用

文章地址:https://www.zhihuclub.com/76477.shtml

关于作者: 智云科技

热门文章

网站地图