PHPackages                             fingermessenger/helpers - 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. fingermessenger/helpers

ActiveLibrary

fingermessenger/helpers
=======================

v1.0(7y ago)08MITPHPPHP &gt;=7.0

Since Dec 24Pushed 7y agoCompare

[ Source](https://github.com/FingerMessenger/PHP-Lib-Helper)[ Packagist](https://packagist.org/packages/fingermessenger/helpers)[ RSS](/packages/fingermessenger-helpers/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

Install
-------

[](#install)

composer require fingermessenger/helpers

Usage
-----

[](#usage)

```
use FingerMessenger\Helpers;
```

Helpers::getRandomChar(int $length) :string 取得指定长度的随机字符串（包括：大小写字母和数字）

Helpers::getRandomNum(int $length) :string 取得指定长度的随机字符串，只包含数字

Helpers::getRandomLetter(int $length) :string 取得指定长度的随机字母字符串，只包含大小写字母

Helpers::getRandomStr(int $length, string $source) :string 取得指定长度的随机字符串，数据源由source提供

Helpers::ArrayToXml(array $arr) :string 将数组转换成xml文档字符串

Helpers::XmlToArray(string $xml) :array 将xml文档字符串转换成数组

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

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

Unknown

Total

1

Last Release

2698d ago

### Community

Maintainers

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

---

Top Contributors

[![FingerMessenger](https://avatars.githubusercontent.com/u/25274164?v=4)](https://github.com/FingerMessenger "FingerMessenger (5 commits)")

### Embed Badge

![Health badge](/badges/fingermessenger-helpers/health.svg)

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

PHPackages © 2026

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