有支持 PHP 5.3 的 PHPDocumentor 替代品吗?

发布于 2024-08-21 15:53:12 字数 162 浏览 8 评论 0原文

一些新的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

很酷不放纵 2024-08-28 15:53:12

你可以试试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

零崎曲识 2024-08-28 15:53:12

嗯,我发现了 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.

宛菡 2024-08-28 15:53:12

检查 ApiGen API 文档生成器是否支持 PHP 5.3

Check ApiGen API documentation generator with PHP 5.3 support

雨后咖啡店 2024-08-28 15:53:12

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

习ぎ惯性依靠 2024-08-28 15:53:12

@mvriel 的评论中已经提到了这一点,但我会回答:phpDocumentor 的后继者是 phpDocumentor 2。从其网站:

phpDocumentor 2 旨在为 PHP 5.3 及更高版本中提供的所有功能生成 API 文档。

phpDocumentor 2 是 phpDocumentor 和 DocBlox 合并的结果。来自合并公告 在 DocBlox 的网站上:

宣布 phpDocumentor 2 – 旧版 (phpDocumentor) 和新版 (DocBlox) 的合并。

...

旧的 phpDocumentor 即将退休。一些错误修复工作可能会继续使 phpDocumentor 1.x 结束,但未来的大部分努力将花在 2.x 上。

它仍处于 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 build to generate API documentation for all features available in PHP 5.3 and higher.

phpDocumentor 2 is the result of the merge between phpDocumentor and DocBlox. From the merge announcement in DocBlox's website:

Announcing phpDocumentor 2 – the merging of the old (phpDocumentor) and the new (DocBlox).

...

Old phpDocumentor is retiring. Some bugfix effort may continue into bringing phpDocumentor 1.x to a close, but most effort going forward will be spent on 2.x.

It's still in alpha stage (as of 2013-04-01), but usable.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文