命令`phpdoc`整个目录?

时间:2011-07-01 13:00:24

标签: php phpdoc

为整个项目生成phpdoc的命令行是什么?

目录结构

/Users/macuser/Sites/my-project/
    index.php
    config.php
    includes/
        class/
            test.class.php
        include-a.php
    docs-go-in-here/

我已经安装了PEAR phpdoc并且能够为单个php文件创建文档,我无法找到如何编写整个目录。

2 个答案:

答案 0 :(得分:5)

phpdoc -h是你的朋友:

  -d    --directory               name of a directory(s) to parse
                                  directory1,directory2

答案 1 :(得分:0)

我建议考虑使用doxygen而不是phpdoc,这是一个死的项目。看看这个 - http://www.doxygen.nl/