PHPackages                             fuermao/utils - 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. fuermao/utils

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

fuermao/utils
=============

工具包

V0.0.7(6y ago)04PHPPHP &gt;=7.1.0CI failing

Since Feb 28Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (8)Used By (0)

常用工具集合
======

[](#常用工具集合)

> 本工具支持常见字符串、数组操作以及相关校验。

字符串工具
-----

[](#字符串工具)

类方法`StringUtils.php`

字符串操作提供以及方法：

1. 随机字符串方法：
2. 驼峰命名转下划线命名；
3. 字符串脱敏操作；

数组工具
----

[](#数组工具)

类方法`ArrayUtils.php`；

提供如下方法：

1. 递归获取数组值，支持多维数组
2. 数组合并操作，支持多维数组
3. 数组转换为实例对象，根据反射创建对象

公共函数
----

[](#公共函数)

`common_functions.php`根据工具写的一些快捷方法，便于使用。

1. 手机号脱敏；
2. 用户名称脱敏；

验证函数
----

[](#验证函数)

`validator_function.php`主要包含一些常见数据数据验证方法

1. 手机号验证方法；
2. 身份证号码有效性校验；

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

7

Last Release

2240d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0aa5314bd8f79f356a4a9aadea60022a4abd31e7b61af0befe42ce5497fb2b83?d=identicon)[fuermao](/maintainers/fuermao)

---

Top Contributors

[![fuermao](https://avatars.githubusercontent.com/u/24285985?v=4)](https://github.com/fuermao "fuermao (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fuermao-utils/health.svg)

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

###  Alternatives

[tekill/env-diff

Check the difference between env files and actualize each other

2496.4k1](/packages/tekill-env-diff)[marcelog/ding

PHP Dependency Injection based on Spring(tm), with Aspect Oriented Programming, MVC

1202.1k](/packages/marcelog-ding)[proteusthemes/wai-aria-walker-nav-menu

WordPress menu walker which adds appropriate WIA-ARIA roles to dropdown menus.

326.5k](/packages/proteusthemes-wai-aria-walker-nav-menu)

PHPackages © 2026

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