PHPackages                             yuhari/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. yuhari/annotation

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

yuhari/annotation
=================

1.0.0(6y ago)14PHP

Since Aug 13Pushed 6y ago1 watchersCompare

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

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

yuhari/annotation
-----------------

[](#yuhariannotation)

### 介绍

[](#介绍)

> 1. 该扩展是基于`doctrine/annotation`的使用封装，帮助使用者更灵活、简单地使用`注释（annotation）`这一功能；
> 2. 支持`php7.2+`, 低版本的`php`可以适当修改语法也很容易完成兼容；

### 安装

[](#安装)

```
composer require yuhari/annotation

```

### 使用示例

[](#使用示例)

> `/demo` 下有使用示例，简单提供了三种常见的用法：

- Before Annotation

    > 定义在类创建、方法执行前的注释，比如可以用来收集日志、权限控制等；
- After Annotation

    > 定义在类创建或方法执行后的注释，可以用来收集日志、与Before配合记录方法占有性能参数等；
- Bootstrap Annotation

    > 这种注释会在载入时获取分析，从而可以用来获取配置在类、方法注释中的配置，比如可以实现接口注释设置路由的功能；

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2512d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16055224?v=4)[洋榎](/maintainers/yuhari)[@yuhari](https://github.com/yuhari)

### Embed Badge

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

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

###  Alternatives

[akeneo/pim-community-dev

Akeneo PIM, the future of catalog management is open!

1.0k620.8k86](/packages/akeneo-pim-community-dev)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

53675.5k16](/packages/solspace-craft-freeform)[koriym/attributes

An annotation/attribute reader

433.6M13](/packages/koriym-attributes)[oat-sa/generis

TAO generis library

10144.6k109](/packages/oat-sa-generis)[hostnet/entity-tracker-component

Provides an event when a Tracked entity changes

16159.7k5](/packages/hostnet-entity-tracker-component)[yosimitso/workingforumbundle

A complete forum bundle

425.3k](/packages/yosimitso-workingforumbundle)

PHPackages © 2026

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