有支持 PHP 5.3 的 PHPDocumentor 替代品吗?
一些新的 PHP 5.3 功能(包括命名空间和匿名函数)与 PHPDocumentor 不兼容,即使是最新版本也是如此。例如,当遇到“没有名称的函数”(即闭包)时,它只会引发错误。那么,是否有其他开源工具可以根据 PHP 5.3 代码中的 Javadoc 风格注释生成 API 文档(最好是 HTML 格式)?
Some of the new PHP 5.3 features, including namespaces and anonymous functions, are not compatible with PHPDocumentor, even with the latest release. For example, it just raises an error when it encounters "a function with no name", i.e. a closure. So, are there any other open-source tools that generate API documentation (preferably in HTML) from Javadoc-style comments in PHP 5.3 code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
你可以试试DocBlox;它旨在成为 phpDocumentor 的替代品,但支持其他功能,其中完整的 PHP 5.3 支持就是其中之一。另一个好处是它速度相当快并且使用相对较少的内存。
您可以在 http://www.docblox-project.org 上阅读更多信息,或在 http://demo.docblox-project.org/default
You could try DocBlox; which is intended to be an alternative for phpDocumentor but with support for additional features of which full PHP 5.3 support is one. An additional benefit is that is it quite fast and uses relatively little memory.
You can read more on http://www.docblox-project.org or see a demo at http://demo.docblox-project.org/default
嗯,我发现了 PHPDoctor,它与 PHP 5.3 配合得很好。尽管如此,如果有人找到更好的东西,我仍然很感兴趣,所以我不会结束这个问题。
Well, I've found PHPDoctor, which works pretty well with PHP 5.3. Although, I'd be still interested if anyone found something better, so I'm not closing the question.
检查 ApiGen API 文档生成器是否支持 PHP 5.3
Check ApiGen API documentation generator with PHP 5.3 support
YUI Doc 与语言无关。是可以用的。这是描述其使用的视频: http://developer .yahoo.com/yui/theater/video.php?v=woods-yuiconf2009-yuidoc
YUI Doc is language agnostic. It could be used. Here's a video describing its use: http://developer.yahoo.com/yui/theater/video.php?v=woods-yuiconf2009-yuidoc
@mvriel 的评论中已经提到了这一点,但我会回答:phpDocumentor 的后继者是 phpDocumentor 2。从其网站:
phpDocumentor 2 是 phpDocumentor 和 DocBlox 合并的结果。来自合并公告 在 DocBlox 的网站上:
它仍处于 alpha 阶段(截至 2013 年 4 月 1 日),但可用。
This was already mentioned in a comment by @mvriel, but I'll make it an answer: phpDocumentor's successor is phpDocumentor 2. From its website:
phpDocumentor 2 is the result of the merge between phpDocumentor and DocBlox. From the merge announcement in DocBlox's website:
It's still in alpha stage (as of 2013-04-01), but usable.