PHPackages                             lenny4/compress-int - 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. lenny4/compress-int

ActiveLibrary

lenny4/compress-int
===================

Compress integer into alphanumeric

v1.1.1(1y ago)11.7k↓100%MITPHPPHP &gt;=8.0

Since Nov 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Lenny4/compress-int)[ Packagist](https://packagist.org/packages/lenny4/compress-int)[ Docs](https://github.com/lenny4/compress-int)[ RSS](/packages/lenny4-compress-int/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (3)Versions (5)Used By (0)

Compress integer into alphanumeric
==================================

[](#compress-integer-into-alphanumeric)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require lenny4/compress-int
```

Usage
-----

[](#usage)

```
$number = 123456;
$compress = Lenny4\CompressInt::compress($number); // e7w
$decompress = Lenny4\CompressInt::decompress($compress); // 123456
```

You can change symbols use for compress and decompress:

```
$number = 123456;
$customSymbols = '0123456789abcdefghijklmnopqrstuvwxyz'
$compress = Lenny4\CompressInt::compress($number, $customSymbols);
$decompress = Lenny4\CompressInt::decompress($compress, $customSymbols);
```

Symbols:

```
Lenny4\CompressInt::DEFAULT_SYMBOLS // 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
Lenny4\CompressInt::LONG_SYMBOLS // 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&()*+,-/:;?@[\]^_{|}~
Lenny4\CompressInt::DEFAULT_SYMBOLS_INSENSITIVE // 0123456789abcdefghijklmnopqrstuvwxyz
Lenny4\CompressInt::LONG_SYMBOLS_INSENSITIVE // 0123456789abcdefghijklmnopqrstuvwxyz!#$%&()*+,-/:;?@[\]^_{|}~
```

Testing
-------

[](#testing)

```
composer test
```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance42

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Total

4

Last Release

498d ago

Major Versions

v0.0.1 → v1.0.02021-11-19

PHP version history (2 changes)v0.0.1PHP &gt;=7.1

v1.1.1PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cbee099fb53984f8213abf56cffa9eb99f8750ab08863a91311152bef562091?d=identicon)[lenny4](/maintainers/lenny4)

---

Top Contributors

[![Lenny4](https://avatars.githubusercontent.com/u/25544892?v=4)](https://github.com/Lenny4 "Lenny4 (7 commits)")

---

Tags

Lenny4compress-int

###  Code Quality

TestsPest

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/lenny4-compress-int/health.svg)

```
[![Health](https://phpackages.com/badges/lenny4-compress-int/health.svg)](https://phpackages.com/packages/lenny4-compress-int)
```

PHPackages © 2026

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