PHPackages                             liaosp/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. liaosp/think-model-helper

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

liaosp/think-model-helper
=========================

v6.0.0(4y ago)05Apache-2.0PHP

Since Apr 13Pushed 4y ago1 watchersCompare

[ Source](https://github.com/liaoshengping/think-model-helper)[ Packagist](https://packagist.org/packages/liaosp/think-model-helper)[ RSS](/packages/liaosp-think-model-helper/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

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

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

### 安装

[](#安装)

```
composer require yunwuxin/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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1495d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/440eb424aa6385a9bca5bf1597270a4235e943a67536900f7fbf0c8cdb96594e?d=identicon)[liaoshengping](/maintainers/liaoshengping)

---

Top Contributors

[![liaoshengping](https://avatars.githubusercontent.com/u/24541157?v=4)](https://github.com/liaoshengping "liaoshengping (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[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)
