PHPackages                             hyperf/code-generator - 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. hyperf/code-generator

ActiveLibrary

hyperf/code-generator
=====================

Code Generator for Hyperf

v0.3.3(4y ago)2100.9k↓96.7%1MITPHPPHP &gt;=8.0

Since Jun 17Pushed 4y ago2 watchersCompare

[ Source](https://github.com/hyperf/code-generator)[ Packagist](https://packagist.org/packages/hyperf/code-generator)[ RSS](/packages/hyperf-code-generator/feed)WikiDiscussions main Synced today

READMEChangelog (7)Dependencies (15)Versions (8)Used By (0)

代码生成器
=====

[](#代码生成器)

```
composer require hyperf/code-generator --dev -o
```

将 Doctrine 的注解转化为 PHP8 原生注解
---------------------------

[](#将-doctrine-的注解转化为-php8-原生注解)

```
php bin/hyperf.php code:generate -D app
```

添加自定义注解
-------

[](#添加自定义注解)

- 修改配置文件 config/autoload/annotations.php

```
