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

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

busyphp/annotation
==================

基于ThinkPHP改进的注解扩展，方便高效的开发项目

v1.0.0(4y ago)04CC-BY-NC-4.0PHP

Since Apr 4Pushed 4y ago1 watchersCompare

[ Source](https://github.com/busyphp/annotation)[ Packagist](https://packagist.org/packages/busyphp/annotation)[ Docs](http://www.harter.cn/?form=BusyPHP&plugin=busyphp/annotation)[ RSS](/packages/busyphp-annotation/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

注解扩展
====

[](#注解扩展)

> 基于ThinkPHP改进的注解扩展，方便高效的开发项目

安装方式
----

[](#安装方式)

```
composer require busyphp/annotation
```

使用
--

[](#使用)

### 属性依赖注入注解 `@BusyPHP\annotation\Inject`

[](#属性依赖注入注解-busyphpannotationinject)

支持类：

- think\\Model
- BusyPHP\\Model\\Model
- BusyPHP\\Model\\Field
- BusyPHP\\model\\ArrayOption
- BusyPHP\\model\\ObjectOption
- BusyPHP\\model\\Entity
- `app\*` 命名空间下通过 `\think\Container` 管理的类
- `core\*` 命名空间下通过 `\think\Container` 管理的类
- `config/busy-annotation.php 中设置 inject.namespaces` 命名空间下通过 `\think\Container` 管理的类

#### 示例

[](#示例)

```
