PHPackages                             zqtop999/tp5tools - 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. zqtop999/tp5tools

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

zqtop999/tp5tools
=================

thinkphp5 工具集

v5.0(2y ago)07MITPHP

Since Jan 8Pushed 2y ago1 watchersCompare

[ Source](https://github.com/zqtop999/tp5Tools)[ Packagist](https://packagist.org/packages/zqtop999/tp5tools)[ RSS](/packages/zqtop999-tp5tools/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (10)Used By (0)

tp5tools
========

[](#tp5tools)

tp5model 使用方法
=============

[](#tp5model-使用方法)

首先使用composer 安装

```
composer require  zqtop999/tp5model

```

```

然后在command.php文件增加配置

```

'tp5model' =&gt; \\zqtop999\\think\\tp5tools\\tp5model::class,

```

完成以后

```

php think tp5model index/model #为index模块下model目录的所有的模型文件生成注释

```
也可以

```

php think tp5model index/model/PeopleModel.php #为index模块下model目录的PeopleModel生成注释

```

# 实验案例如下

原来的模型文件内容

```

class PeopleModel extends Model { protected $table = 'new\_people';

```
/**
 * 人物的工作经历数据
 * @return \think\model\relation\HasMany
 */
public function careerData()
{
    return $this->hasMany(CareerModel::class,'people_guid','guid');
}

/**
 * 个人的详细信息
 * @return \think\model\relation\HasOne
 */
public function profileData()
{
    return $this->hasOne(ProfileModel::class,'people_guid','guid');
}

/**
 * 头像的完整路径
 * @param $value
 * @param $data
 * @return mixed
 */
public function getLogoFullPathAttr($value,$data)
{
    return resource_url($data['urk']);
}

```

}

```
效果如下

```

use think\\Model;

/\*\*

- 人物表（投资者/创业者）
- @property $guid 人物的guid
- @property $publish\_status 发布状态
- @property $full\_name 用户名称
- @property $english\_name 中文名称
- @property $gender 性别
- @property $byline 个性签名
- @property $avatar\_image 头像
- @property $date\_of\_birth 出生日期
- @property $contact\_wechat 微信
- @property $is\_entrepreneur 是否是创业
- @property $claimed\_by 认领人
- @property $claimed\_at 认领时间
- @property $career\_data CareerModel\[\] 人物的工作经历数据
- @property $profile\_data ProfileModel 个人的详细信息
- @property $logo\_full\_path 头像的完整路径 \*/

class PeopleModel extends Model {

```

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Recently: every ~55 days

Total

9

Last Release

976d ago

Major Versions

v1.0 → v2.02023-01-12

v2.0 → v3.02023-01-25

v3.1.3 → v4.0.12023-04-21

v4.0.1 → v5.02023-09-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/22dbeab9e9616aab23746d5053b6d872f33b9f30b535d9144f1882503d593ca9?d=identicon)[zq\_yeah](/maintainers/zq_yeah)

---

Top Contributors

[![zqtop666](https://avatars.githubusercontent.com/u/7663760?v=4)](https://github.com/zqtop666 "zqtop666 (29 commits)")

### Embed Badge

![Health badge](/badges/zqtop999-tp5tools/health.svg)

```
[![Health](https://phpackages.com/badges/zqtop999-tp5tools/health.svg)](https://phpackages.com/packages/zqtop999-tp5tools)
```

PHPackages © 2026

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