PHPackages                             gumphp/think-model-helper - 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. [Database &amp; ORM](/categories/database)
4. /
5. gumphp/think-model-helper

ActiveLibrary[Database &amp; ORM](/categories/database)

gumphp/think-model-helper
=========================

3.1(2y ago)05Apache-2.0

Since Dec 10Pushed 2y agoCompare

[ Source](https://github.com/gumphp/think-model-helper)[ Packagist](https://packagist.org/packages/gumphp/think-model-helper)[ RSS](/packages/gumphp-think-model-helper/feed)WikiDiscussions master Synced 1mo ago

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

ThinkPHP6 自动生成模型的注释
-------------------

[](#thinkphp6-自动生成模型的注释)

### 安装

[](#安装)

```
composer require gumphp/think-model-helper

```

### 使用方法

[](#使用方法)

```
//所有模型
php think model:annotation

//指定模型
php think model:annotation app\\User app\\Post

```

#### 可选参数

[](#可选参数)

```
--dir="models" [-D] 指定自动搜索模型的目录,相对于应用基础目录的路径，可指定多个，默认为app/model

--ignore="app\\User,app\\Post" [-I] 忽略的模型，可指定多个

--overwrite [-O] 强制覆盖已有的属性注释

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.5% 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 ~1296 days

Total

2

Last Release

1054d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe6c27a2d5150e5987aba932dd2295e98799bd0786d7819d751838bcdcb73c22?d=identicon)[gumphp](/maintainers/gumphp)

---

Top Contributors

[![yunwuxin](https://avatars.githubusercontent.com/u/2168125?v=4)](https://github.com/yunwuxin "yunwuxin (19 commits)")[![liu21st](https://avatars.githubusercontent.com/u/1111670?v=4)](https://github.com/liu21st "liu21st (1 commits)")[![liuwave](https://avatars.githubusercontent.com/u/6533126?v=4)](https://github.com/liuwave "liuwave (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gumphp-think-model-helper/health.svg)

```
[![Health](https://phpackages.com/badges/gumphp-think-model-helper/health.svg)](https://phpackages.com/packages/gumphp-think-model-helper)
```

###  Alternatives

[topthink/think-orm

the PHP Database&amp;ORM Framework

4542.0M218](/packages/topthink-think-orm)[bolt/core

🧿 Bolt Core

585142.5k54](/packages/bolt-core)[topthink/think-migration

96460.8k121](/packages/topthink-think-migration)[topthink/think-mongo

mongodb driver for thinkphp6.0

109139.8k6](/packages/topthink-think-mongo)[williarin/wordpress-interop

Interoperability library to work with WordPress database in third party apps

6610.9k2](/packages/williarin-wordpress-interop)[ray/media-query

PHP interface-based SQL framework

11220.7k2](/packages/ray-media-query)

PHPackages © 2026

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