PHPackages                             shiroi/think-reflection-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. shiroi/think-reflection-annotation

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

shiroi/think-reflection-annotation
==================================

thinkphp的反射插件(同个注解反射某个class、某个method、某个param、通过观察者模式关联绑定的某个method处理多个事务)

1.0.2(2y ago)020MITPHPPHP &gt;=7.4

Since Jun 30Pushed 2y ago1 watchersCompare

[ Source](https://github.com/hcr707305003/think-reflection-annotation)[ Packagist](https://packagist.org/packages/shiroi/think-reflection-annotation)[ RSS](/packages/shiroi-think-reflection-annotation/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (5)Used By (0)

think-reflection-annotation
===========================

[](#think-reflection-annotation)

### 1. class的反射插件(同个注解反射某个class、某个method、某个param、通过观察者模式关联绑定的某个method处理多个事务)

[](#1-class的反射插件同个注解反射某个class某个method某个param通过观察者模式关联绑定的某个method处理多个事务)

### 2. 安装

[](#2-安装)

```
composer require shiroi/think-reflection-annotation

```

### 3. 使用

[](#3-使用)

```
//需要反射的类
$class = new TestClass();

//实例化反射类
$factory = \Shiroi\ThinkReflectionAnnotation\reflection\Factory::getInstance($class);
//反射类(类的详情、包含私有方法、私有属性)
var_dump($factory->getClassSubject());

//反射类的方法
var_dump($factory->getMethodsSubject());

//反射类的属性
var_dump($factory->getPropertiesSubject());

//反射类的doc
var_dump($factory->getClassDocComment());

//反射类的方法doc
var_dump($factory->getMethodsDocComment());
```

### 4. 注：所有框架都适用，引入便可使用了~

[](#4-注所有框架都适用引入便可使用了)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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 ~147 days

Total

4

Last Release

1020d ago

Major Versions

0.0.1 → 1.0.02022-07-07

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22547038?v=4)[shiroi](/maintainers/hcr707305003)[@hcr707305003](https://github.com/hcr707305003)

---

Top Contributors

[![hcr707305003](https://avatars.githubusercontent.com/u/22547038?v=4)](https://github.com/hcr707305003 "hcr707305003 (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/shiroi-think-reflection-annotation/health.svg)

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

###  Alternatives

[endroid/installer

Composer plugin for installing configuration files

15712.7M27](/packages/endroid-installer)[lolli42/finediff

PHP implementation of a Fine granularity Diff engine

139.8M9](/packages/lolli42-finediff)

PHPackages © 2026

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