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

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

keygn/tp6-annotation
====================

Annotation Plus For ThinkPHP6

1.0.1(6y ago)04MITPHPPHP &gt;=7.0

Since Jun 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/cKeygn/tp6-annotation)[ Packagist](https://packagist.org/packages/keygn/tp6-annotation)[ RSS](/packages/keygn-tp6-annotation/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

think-annotation for ThinkPHP6
==============================

[](#think-annotation-for-thinkphp6)

安装
--

[](#安装)

> composer require keygn/tp6-annotation

配置
--

[](#配置)

> 配置文件位于 `config/annotation.php`

使用方法
----

[](#使用方法)

#### 创建注解

[](#创建注解)

通过命令行模式创建，例如创建一个User的注解，分为以下三部分

- 添加注解命令行

    修改tp6命令行文件位置：`config/console.php`

    添加以下内容:

    ```
