PHPackages                             easyswoole/code-generation - 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. easyswoole/code-generation

ActiveLibrary

easyswoole/code-generation
==========================

2.1.3(4y ago)127.1k↓100%7[1 issues](https://github.com/easy-swoole/code-generation/issues)Apache-2.0PHP

Since May 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/easy-swoole/code-generation)[ Packagist](https://packagist.org/packages/easyswoole/code-generation)[ RSS](/packages/easyswoole-code-generation/feed)WikiDiscussions 2.x Synced today

READMEChangelog (9)Dependencies (10)Versions (11)Used By (0)

2.x版本说明
=======

[](#2x版本说明)

2.x相对于1.x版本,兼容了`easyswoole`的最新注解组件,支持了新的easyswoole文档自动生成,以及最新的`phpunit`版本,同时完善了`Model->getList返回参数`,以及`控制器getOne,getList`的`response参数注解`

code-generation
===============

[](#code-generation)

easyswoole代码生成组件,可使用命令行,代码一键生成业务通用代码,支持代码如下:

- 一键生成项目初始化 baseController,baseModel,baseUnitTest.
- 一键生成 表Model ,自带属性注释
- 一键生成 表 curd控制器,自带5个curd方法
- 一键生成 控制器单元测试用例,测试5个curd方法

安装
--

[](#安装)

```
composer require easyswoole/code-generation
```

使用
--

[](#使用)

```
