PHPackages                             lrun/tp-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. lrun/tp-model-helper

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

lrun/tp-model-helper
====================

a vendor for thinkphp6.\*,help generate phpdocs for model class

v1.0.5(3y ago)012Apache-2.0PHP

Since Sep 28Pushed 3y agoCompare

[ Source](https://github.com/Lrun-web/tp-model-helper)[ Packagist](https://packagist.org/packages/lrun/tp-model-helper)[ RSS](/packages/lrun-tp-model-helper/feed)WikiDiscussions 1.0 Synced today

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

ThinkPHP6 模型注释和模型字段自动生成助手
-------------------------

[](#thinkphp6-模型注释和模型字段自动生成助手)

功能
--

[](#功能)

- 根据数据库的字段，以及模型的获取器和修改器等方法，自动生成模型的注释。以便于IDE可以获得类型提示。
- 根据模型字段写入schema|type，以后发布项目无需更新字段缓存，查看[https://www.kancloud.cn/manual/thinkphp6\_0/1037581](https://www.kancloud.cn/manual/thinkphp6_0/1037581) 了解schema

### 安装

[](#安装)

```

composer require itinysun/tp-model-helper

修改 配置文件
config/console/model_help

确保已经配置了数据库连接，并且可以连接到数据库

```

### 使用方法

[](#使用方法)

```
//更新所有模型
php think model:help

//更新指定模型
php think model:help app\model\User app\model\Post

//清理所有模型
php think model:help -C

//清理指定模型
php think model:help app\model\User  app\model\Post -C

```

#### 可选参数

[](#可选参数)

```

--clean [-C] 清理模式，根据提示清理生成的注释和字段

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

```

#### 感谢

[](#感谢)

本项目修改自 yunwuxin/think-model-helper

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

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

6

Last Release

1376d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/12a0eb9a55ab938b138946fd1e367fbe137dcd41eb74b800ee57b4c221a8e7b7?d=identicon)[lrun](/maintainers/lrun)

---

Top Contributors

[![Itinysun](https://avatars.githubusercontent.com/u/5356264?v=4)](https://github.com/Itinysun "Itinysun (6 commits)")[![LRRun](https://avatars.githubusercontent.com/u/37306014?v=4)](https://github.com/LRRun "LRRun (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lrun-tp-model-helper/health.svg)

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[mcp/sdk

Model Context Protocol SDK for Client and Server applications in PHP

1.5k1.5M90](/packages/mcp-sdk)[phpdocumentor/reflection

Reflection library to do Static Analysis for PHP Projects

12525.9M149](/packages/phpdocumentor-reflection)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)[symfony/ai-platform

PHP library for interacting with AI platform provider.

521.4M291](/packages/symfony-ai-platform)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

318123.0k1](/packages/cognesy-instructor-php)

PHPackages © 2026

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