PHP 5.3 命名空间是否需要@package?

发布于 2024-10-26 20:01:28 字数 102 浏览 2 评论 0原文

我已切换到 PHP 5.3 和命名空间。看来@package标签现在是多余的并且没有用了。

phpDoc 仍然需要它吗?或者我现在可以忽略这个标签吗?

谢谢

I've switched to PHP 5.3 and the namespaces. It seems like the @package tag is redundant and useless now.

Is it still required by phpDoc, or can I ignore this tag now ?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

塔塔猫 2024-11-02 20:01:28

这不是必需的。

最新的文档现在指出,如果您使用命名空间并且不需要不同的文档结构,则应避免使用 @package

如果从整体上看,逻辑和功能细分都是
equal 不建议使用 @package 标签,以防止
维护开销。

http://phpdoc.org/docs/latest/references/phpdoc/标签/package.html

It is not required.

Latest doc now states that @package should be avoided if you use namespace and you don't need a different structure for documentation:

If, across the board, both logical and functional subdivisions are
equal is it NOT RECOMMENDED to use the @package tag, to prevent
maintenance overhead.

http://phpdoc.org/docs/latest/references/phpdoc/tags/package.html

小糖芽 2024-11-02 20:01:28

@package 与命名空间无关,而是与组织结果文档相关。

软件包是用来帮助你的
对相关元素进行逻辑分组。
phpDoc 手册

编辑

是否有支持 PHP 5.3 的 PHPDocumentor 替代品?

@package is not related to namespaces but to organizing the resulting documentation.

Packages are used to help you
logically group related elements.
phpDoc manual

EDIT:

Is there any replacement for PHPDocumentor that supports PHP 5.3?

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