命令`phpdoc`整个目录?

问题描述 投票:1回答:2

命令行将为整个项目生成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文件创建文档,我无法找到如何执行整个目录。

php phpdoc
2个回答
5
投票

phpdoc -h是你的朋友:

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

0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.