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

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

linfly/annotation
=================

Webman plugin linfly/annotation

2.1.0(1y ago)111.2k1[3 issues](https://github.com/imlinfly/webman-annotation/issues)4MITPHPPHP ^8.0

Since Oct 30Pushed 1y ago1 watchersCompare

[ Source](https://github.com/imlinfly/webman-annotation)[ Packagist](https://packagist.org/packages/linfly/annotation)[ RSS](/packages/linfly-annotation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (23)Used By (4)

webman annotation 注解插件
======================

[](#webman-annotation-注解插件)

> 本插件使用 [doctrine/annotation](https://github.com/doctrine/annotations) 对注释解析
>
> PHP版本要求 &gt;= 8.0
>
> 支持注释注解 和 PHP8注解方式

### 目前支持的功能

[](#目前支持的功能)

- 路由注解
- 中间件注解
- 验证器注解
- 自定义注解
- 注解继承 `v1.0.5` 版本开始支持
- 依赖注入 `v1.0.7` 版本开始支持

安装
--

[](#安装)

```
composer require linfly/annotation:^1.*
```

配置
--

[](#配置)

> 配置文件路径：/plugin/linfly/annotation/annotation.php

```
