PHPackages                             ledc/think-model-trait - 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. ledc/think-model-trait

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

ledc/think-model-trait
======================

批量生成thinkPHP项目的数据表注释

v7.3.8(7mo ago)01216MITPHPPHP &gt;=7.4

Since Aug 21Pushed 7mo ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (56)Used By (6)

批量生成thinkPHP项目的数据表注释
====================

[](#批量生成thinkphp项目的数据表注释)

安装
--

[](#安装)

`composer require ledc/think-model-trait`

使用说明
----

[](#使用说明)

### 生成数据表字段注释

[](#生成数据表字段注释)

例如：数据库配置文件`config/database.php`，生成 数据库连接`mysql`、数据表`user`的表注释，命令如下

```
php think make:trait mysql user
```

### 清空数据表

[](#清空数据表)

```
php think clear:table mysql YmdHi --file=exclude --force
```

帮助指令
----

[](#帮助指令)

```
php think make:trait -h
Usage:
  make:trait [options] [--]

Arguments:
  connection            数据库连接名称
  table                 完整的数据表名称

Options:
      --m               同时生成模型
```

捐赠
--

[](#捐赠)

[![reward](reward.png)](reward.png)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance62

Regular maintenance activity

Popularity10

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

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 ~7 days

Total

55

Last Release

236d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4af14254189bc74029cc40f4206f8006872b0cd092c680201f204a85a490f143?d=identicon)[ledccn](/maintainers/ledccn)

---

Top Contributors

[![ledccn](https://avatars.githubusercontent.com/u/53997080?v=4)](https://github.com/ledccn "ledccn (72 commits)")

### Embed Badge

![Health badge](/badges/ledc-think-model-trait/health.svg)

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

###  Alternatives

[topthink/think-captcha

captcha package for thinkphp

132934.4k68](/packages/topthink-think-captcha)[topthink/think-worker

workerman extend for thinkphp

202227.2k9](/packages/topthink-think-worker)[zoujingli/think-library

Library for ThinkAdmin

8569.8k18](/packages/zoujingli-think-library)[yunwuxin/think-cron

计划任务

17416.2k](/packages/yunwuxin-think-cron)[zzstudio/think-addons

The ThinkPHP6 Addons Package

1518.6k](/packages/zzstudio-think-addons)[topthink/think-annotation

Annotation For ThinkPHP

4831.5k8](/packages/topthink-think-annotation)

PHPackages © 2026

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