PHPackages                             itinysun/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. itinysun/tp-model-helper

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

itinysun/tp-model-helper
========================

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

v1.0.2(4y ago)1781Apache-2.0PHP

Since Sep 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Itinysun/tp-model-helper)[ Packagist](https://packagist.org/packages/itinysun/tp-model-helper)[ RSS](/packages/itinysun-tp-model-helper/feed)WikiDiscussions 1.0 Synced 1mo ago

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

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

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

功能
--

[](#功能)

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

### 安装

[](#安装)

```

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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Every ~12 days

Total

6

Last Release

1648d ago

Major Versions

v0.1.0 → v1.0.02021-09-03

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

ide-helperphpthinkphpthinkphp6

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cognesy/instructor-php

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

310107.9k1](/packages/cognesy-instructor-php)[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k134](/packages/symfony-ai-platform)[symfony/ai-agent

PHP library for building agentic applications.

30536.7k44](/packages/symfony-ai-agent)[xefi/faker-php

Faker allows you to generate realistic fake data for your php applications

15116.5k15](/packages/xefi-faker-php)[zzstudio/think-addons

The ThinkPHP6 Addons Package

1518.6k](/packages/zzstudio-think-addons)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)

PHPackages © 2026

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