PHPackages                             sunqianhu/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. sunqianhu/helper

ActiveLibrary

sunqianhu/helper
================

php助手类包含项目开发过程中各种常用的工具类

1.6.2(4mo ago)0407↓100%Apache-2.0PHP

Since Jan 17Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/sunqianhu/helper)[ Packagist](https://packagist.org/packages/sunqianhu/helper)[ RSS](/packages/sunqianhu-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (51)Used By (0)

php助手类
======

[](#php助手类)

php助手类包含项目开发过程中各种常用的类。

ArrayHandler数组处理器类
------------------

[](#arrayhandler数组处理器类)

- convertTree 转换为树数组
- rsortTwoDimensional 按某字段降序排序二维数组

Captcha验证码类
-----------

[](#captcha验证码类)

- createImage 创建图片
- createBase64Image 创建base64图片
- getCode 获取验证码

Image图片处理类
----------

[](#image图片处理类)

- thumbnail 缩略图

StringHandler字符串处理器类
--------------------

[](#stringhandler字符串处理器类)

- length 字符串长度
- sub 截取字符串
- zeroEllipsisSub 从0开始带省略号截取
- toSmallPascal 转小帕斯卡
- delimiterSort 分隔排序

Time时间类
-------

[](#time时间类)

- getFragmentName 得到时间段名称

Desensitization脱敏类
------------------

[](#desensitization脱敏类)

- getPhoneAddStar 得到手机号码加星
- getIdNumberAddStar 得到身份证号码加星
- getNameAddStar 得到姓名加星

IdNumber身份证号码类
--------------

[](#idnumber身份证号码类)

- getGenderId 得到性别id
- getBirthday 得到生日

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance80

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Recently: every ~33 days

Total

50

Last Release

137d ago

### Community

Maintainers

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

---

Top Contributors

[![sunqianhu](https://avatars.githubusercontent.com/u/102338970?v=4)](https://github.com/sunqianhu "sunqianhu (67 commits)")

### Embed Badge

![Health badge](/badges/sunqianhu-helper/health.svg)

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

PHPackages © 2026

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