PHPackages                             hcl109080/invitation-code - 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. hcl109080/invitation-code

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

hcl109080/invitation-code
=========================

Convert self incrementing ID to string

v1.1(4y ago)010mitPHPPHP &gt;=7.0

Since Dec 24Pushed 4y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

- 数字转字符串，PHP数字转字符串

使用方法

```
    // 先调用 randomKey 生成 keyMap
    // $keyMap = IntConvert::randomKey();

    $keyMap = [
        'UEXWSL59Q6GCNODZ23BIF8R4V7AKYMH1',
        '943Z58QNX1WM7ID26SHVBFGAEYRCLOUK',
        'G5VM36BZDQAE174KLUNYR2SIHOF8C9WX',
        'Y1C942FGV3WM7IQZHO5KLR6XDE8UNASB',
        '3NZU92SMQ8O64BCKFEWLDH7XY1A5RIGV',
        'RV27F8L9NSAGMCXUW5DHZ1O43IBYQK6E',
        'OZWFYHX3L6CVQ7KU48G1B5ASDN2RI9ME',
        'XIND28KH9AB5G4WO6ELCZM7UQSFY3R1V',
        'R43UM9I8GLBW52Z6ODEC7XHK1QVNSYAF',
        'FMDEBAQ14W9K2L6SXV8IRUZG7C3NHO5Y',
        'USEO9H4FKR5W62VNAMCI78D31QLYZXBG',
        'OAS8UZYR6HVQ2KCG139FW7XIB5ME4DNL',
        'RZAHWCDBKU91IN3SX48LQYVOG5MFE267',
        '6GYUMWK8LQI49NSCVDX512B3HF7OAEZR',
        'WY3SRM21AXI8DQ79LO6E45VCFHKZUBGN',
        'LOR8EU3KAID4X6M7ZHQYWG9FN5B1VCS2',
    ];
    try {
        $obg = new IntConvert($keyMap);
        echo $obg->toString(1);  // 输出 7XI
        echo $obg->toInt('7XI');  // 输出 1
    } catch (\Exception $e) {
        throw $e;
    }
```

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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

Total

2

Last Release

1604d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/28293738?v=4)[hcl109080](/maintainers/hcl109080)[@hcl109080](https://github.com/hcl109080)

### Embed Badge

![Health badge](/badges/hcl109080-invitation-code/health.svg)

```
[![Health](https://phpackages.com/badges/hcl109080-invitation-code/health.svg)](https://phpackages.com/packages/hcl109080-invitation-code)
```

###  Alternatives

[h5p/h5p-core

H5P Core functionality in PHP

1401.5M32](/packages/h5p-h5p-core)

PHPackages © 2026

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