phpdoc生成文档(暨pear/pecl管理包)

1、win下安装pear

$file = 'http://pear.php.net/go-pear.phar';
$file2 = 'f:go-pear.phar';
// Open the file to get existing content
$current = file_get_contents($file);
// Write the contents back to the file
将go-pear.phar复制到php.exe同目录下,cd进入该目录,执行php -d phar.require_hash=0 go-pear.phar命令,选择local,一路enter,完成后,该目录下会出现pear有关的目录和bat文件。

2、以phpdocumentor为例使用pear

Pear install phpDocumentor

3、命令生成

phpdoc -d "f:phpdoc1" -t  "f:phpdocdoc"  -o "HTML:frames:phpedit"
原文地址:https://www.cnblogs.com/thingk/p/8809789.html