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(9y ago)018jokingPHPPHP &gt;=5.6

Since Jul 29Pushed 9y ago1 watchersCompare

[ Source](https://github.com/CloverWeb/annotation)[ Packagist](https://packagist.org/packages/joking/annotation)[ RSS](/packages/joking-annotation/feed)WikiDiscussions master Synced 4w 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 40% 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

3297d 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

[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k34.0M491](/packages/matthiasmullie-minify)[funkjedi/composer-include-files

Include files at a higher priority than autoload files.

1283.4M20](/packages/funkjedi-composer-include-files)[guava/filament-icon-picker

A filament plugin that adds an icon picker field.

163718.5k50](/packages/guava-filament-icon-picker)[kartik-v/yii2-widget-sidenav

An enhanced side navigation menu styled for bootstrap (sub repo split from yii2-widgets)

364.3M8](/packages/kartik-v-yii2-widget-sidenav)[klisl/laravel-comments

Package for using comments in Laravel-5

153.4k](/packages/klisl-laravel-comments)

PHPackages © 2026

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