PHPackages                             lsf26809347/thinkphp-gii - 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. lsf26809347/thinkphp-gii

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

lsf26809347/thinkphp-gii
========================

auto create model and controller files when u excute php think generate:module xxx {--controllerExtend XXX --modelExtend XXX}

v0.2(7y ago)17[1 issues](https://github.com/lsf26809347/generate-module/issues)MITPHP

Since Feb 14Pushed 7y agoCompare

[ Source](https://github.com/lsf26809347/generate-module)[ Packagist](https://packagist.org/packages/lsf26809347/thinkphp-gii)[ RSS](/packages/lsf26809347-thinkphp-gii/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

thinkphp-gii
============

[](#thinkphp-gii)

自动生成简单的增删改查代码
-------------

[](#自动生成简单的增删改查代码)

安装
--

[](#安装)

```
composer require lsf26809347/thinkphp-gii

```

命令
--

[](#命令)

#### 基础命令

[](#基础命令)

```
php think generate:module {module/}Index

```

module可以省略，省略时默认为common模块，如要指定模块可以用以下命令

```
php think generate:module Index/Index

```

该命令将在

- application/Index/Controller目录下生成Index.php;
- application/Index/Model目录下生成GenerateModel.php、Index.php，Index模型类自动继承自GenerateModel;
- application/Index/Validate目录下生成Index.php。

#### 参数

[](#参数)

可以在基础命令后添加参数，来指定控制器与模型的继承类

```
php think generate:module Index/Index --controllerExtend Common --modelExtend  Base

```

上面命令生成的Index控制器将继承自Common，generateModel模型基类将继承自Base.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

2693d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31028702?v=4)[lens](/maintainers/lsf26809347)[@lsf26809347](https://github.com/lsf26809347)

---

Top Contributors

[![26809347](https://avatars.githubusercontent.com/u/24327018?v=4)](https://github.com/26809347 "26809347 (3 commits)")[![lsf26809347](https://avatars.githubusercontent.com/u/31028702?v=4)](https://github.com/lsf26809347 "lsf26809347 (2 commits)")

### Embed Badge

![Health badge](/badges/lsf26809347-thinkphp-gii/health.svg)

```
[![Health](https://phpackages.com/badges/lsf26809347-thinkphp-gii/health.svg)](https://phpackages.com/packages/lsf26809347-thinkphp-gii)
```

###  Alternatives

[zoujingli/think-library

Core library and common services for ThinkAdmin

8573.4k20](/packages/zoujingli-think-library)[jansenfelipe/cpf-gratis

Com esse pacote você poderá consultar, gratuitamente, CPFs diretamente no site da receita.

1895.9k](/packages/jansenfelipe-cpf-gratis)[stevenay/myanfont

Zawgyi and Unicode Font Detector and Converter

157.7k2](/packages/stevenay-myanfont)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
