PHP开发实例大全(提高卷) 中文完整pdf扫描版[244MB]
phpdoc
安装
pear channel-discover pear.phpdoc.org
pear install phpdoc/phpDocumentor
安装完成后进入
/usr/share/php/phpDocumentor/
具体位置还需要根据系统来定
修改1
/usr/share/php/phpDocumentor/data/templates/clean/css/template.css 删除第一行,是外部加载有点慢,要是无所谓的话也没时
修改2(不修改这里 如果生成文件有子目录,就不能查看文件内容)
/usr/share/php/phpDocumentor/src/phpDocumentor/Plugin/Twig/Writer/Twig.php
306行
$destination = str_replace(array('/','\\'), DIRECTORY_SEPARATOR, $destination);
改
$destination = str_replace(array('/','\\'), DIRECTORY_SEPARATOR, urldecode($destination));
完成后直接到要生成文档的php目录
phpdoc run -d ./ -t /data/web/php/test/docs --title "说明文档"
这样就生成了 -d 是要生成的文件目录
-t 生成的文件存放路径
--title 是生成的文件title
安装
pear channel-discover pear.phpdoc.org
pear install phpdoc/phpDocumentor
安装完成后进入
/usr/share/php/phpDocumentor/
具体位置还需要根据系统来定
修改1
/usr/share/php/phpDocumentor/data/templates/clean/css/template.css 删除第一行,是外部加载有点慢,要是无所谓的话也没时
修改2(不修改这里 如果生成文件有子目录,就不能查看文件内容)
/usr/share/php/phpDocumentor/src/phpDocumentor/Plugin/Twig/Writer/Twig.php
306行
$destination = str_replace(array('/','\\'), DIRECTORY_SEPARATOR, $destination);
改
$destination = str_replace(array('/','\\'), DIRECTORY_SEPARATOR, urldecode($destination));
完成后直接到要生成文档的php目录
phpdoc run -d ./ -t /data/web/php/test/docs --title "说明文档"
这样就生成了 -d 是要生成的文件目录
-t 生成的文件存放路径
--title 是生成的文件title
转载请注明:谷谷点程序 » phpdoc 安装和使用