mindplay/annotations

PHP 的工业级注释

1.3.4 2024-02-17 16:21 UTC

README

Join the chat at https://gitter.im/php-annotations/php-annotations CI Scrutinizer Quality Score codecov

Latest Stable Version Total Downloads Latest Unstable Version License

PHP 的源代码注释。

版权 (C) 2011-2015 Rasmus Schultz rasmus@mindplay.dk

https://github.com/php-annotations/php-annotations

有关文档和更新,请访问项目 Wiki

http://php-annotations.readthedocs.org/

项目结构

本项目的文件组织如下

php-annotations         This README and the LGPL license
  /src
    /annotations        The core of the library itself
      /standard         Standard library of annotation classes
  /demo                 Browser-based example/demonstration
  /docs                 Documentation files (http://php-annotations.readthedocs.org/en/latest/)
  /test                 Unit tests for the core of the library
    /test.php           Test suite runner
    /annotations        Fixture Annotation types
    /lib                Unit test library
    /runtime            Run-time cache folder used for tests
    /suite              Test cases

"mindplay" 文件夹是所需注释框架本身的唯一文件夹 - 其他文件夹包含演示代码、测试等。

要运行测试套件,请从浏览器运行 "php-annotations/test/test.php" - 测试结果摘要将显示在页面上。

代码风格

主要符合 PSR-2

https://raw.github.com/php-fig/fig-standards/master/accepted/PSR-2-coding-style-guide.md

许可证

https://gnu.ac.cn/licenses/lgpl-3.0.txt

本程序是自由软件;您可以在自由软件基金会发布的 GNU 通用公共许可证条款下重新分发和/或修改它;许可证的第 3 版,或者(根据您的选择)任何更晚的版本。

本程序是在希望它将是有用的前提下分发的,但没有任何保证;甚至没有适销性或特定用途的暗示保证。有关详细信息,请参阅 GNU 通用公共许可证。

您应该已经收到一份 GNU 通用公共许可证副本;如果没有,请参阅 https://gnu.ac.cn/licenses

在 GNU GPL 版本 3 第 7 条下的附加许可

如果您通过链接或组合此程序或任何受版权保护的工作与 php-annotations(或该库的修改版本)并包含受 LGPL 条款覆盖的部分,那么本程序的许可方授予您额外的许可,以传达由此产生的工作。