PHPackages                             joking/annotation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. joking/annotation

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

joking/annotation
=================

注释拓展

v1.0(8y ago)018jokingPHPPHP &gt;=5.6

Since Jul 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/CloverWeb/annotation)[ Packagist](https://packagist.org/packages/joking/annotation)[ RSS](/packages/joking-annotation/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

annotation
==========

[](#annotation)

> 拓展PHP注释，在注释上可以使用更多的@标签，并且可以比较简单的读取这些@标签

例如：

> 在使用之前需要先创建一个标签类

```
class ContainerLabel {
    public $value;
    public $param;

    public function __construct($value , $param) {
        $this->value = $value;
        $this->param = $param;
    }
}

```

> 然后开始注册

```
Annotation::register("标签的名字 Container" , "标签的实体类 ContainerLabel::class");

/**
 * @Container('className' , param="lalala")
 */
 class Name {

 }

```

> 然后你可以这样读读取它

```
$reflectionClass = new ReflectionClass(Name::class);
$reflectionAnnotationClass = new ReflectionAnnotationClass($reflectionClass);
$label = $reflectionAnnotationClass->getAnnotation("Container")

echo $label->param;

输出 lalala

```

---

> 还有更多功能有待开发，等等我想睡觉

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

3251d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a08d4e16c3dd745fa678b6c21118cf2cd68c423926fd70fdc3d6e43649299ae?d=identicon)[CloverWeb](/maintainers/CloverWeb)

---

Top Contributors

[![CloverWeb](https://avatars.githubusercontent.com/u/15816584?v=4)](https://github.com/CloverWeb "CloverWeb (11 commits)")

### Embed Badge

![Health badge](/badges/joking-annotation/health.svg)

```
[![Health](https://phpackages.com/badges/joking-annotation/health.svg)](https://phpackages.com/packages/joking-annotation)
```

###  Alternatives

[lizhichao/one-sm

国密sm3

1881.5M7](/packages/lizhichao-one-sm)[aymanalhattami/filament-context-menu

context menu (right click menu) for filament

10039.0k](/packages/aymanalhattami-filament-context-menu)[tivie/command

An utility library that harmonizes OS differences and executes external programs in a safer way

1257.9k1](/packages/tivie-command)[kern046/changelog-parser

PHP library used to parse a CHANGELOG.md file and return JSON output

106.4k1](/packages/kern046-changelog-parser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
