PHPackages                             inelo/numco - 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. inelo/numco

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

inelo/numco
===========

NUMber COmpressor - small library for numeric arrays compression.

1.1.0(3y ago)319.2k↑104.4%2MITPHPPHP ^7.3 || ^8.0CI failing

Since Apr 12Pushed 3y ago6 watchersCompare

[ Source](https://github.com/inelo/numco-php)[ Packagist](https://packagist.org/packages/inelo/numco)[ RSS](/packages/inelo-numco/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

NUMCO - NUMber COmpressor
=========================

[](#numco---number-compressor)

A small compression/decompression library for numerical arrays. Its best suited for large data sets of integers.

How it works
------------

[](#how-it-works)

Internally this lib creates a delta encoded array and then deflates it using zlib.

Delta encoding is one of the most powerfull numeric compression methods out there. Its a simple algorithm that converts values in given array so that each represents a difference from the previous value.

Delta encoding example:

```
[100, 101, 102, 103, 104, 105] converts to [100, 1, 1, 1, 1, 1]

```

Charts
------

[](#charts)

(the more sequential data the better compression ratio)

[![charts](https://github.com/inelo/numco-node/raw/master/numco_charts.png)](https://github.com/inelo/numco-node/blob/master/numco_charts.png)

Mini DOC
--------

[](#mini-doc)

Compression

```
Numco::compress(array) : string
    expects array of numbers as argument and returns compressed base64 encoded string

```

Decompression

```
Numco::decompress(string) : array
    expects compressed base64 encoded string and returns decompressed array of numbers

```

Composer Installation
---------------------

[](#composer-installation)

```
$ composer require inelo/numco

```

Example usage
-------------

[](#example-usage)

```
use Inelo\Numco\Numco;

$numArray = [ 100, 101, 102, ... ];

$compressed = Numco::compress($numArray);
$decompressed = Numco::decompress($compressed);

echo "compressed base64 encoded string : " . $compressed . "\n";
echo "decompressed array : " . var_export($decompressed, true) . "\n";

```

Running tests
-------------

[](#running-tests)

vendor/bin/phpunit tests

Release History
---------------

[](#release-history)

- 1.0.0 Initial release

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~1075 days

Total

3

Last Release

1219d ago

PHP version history (2 changes)1.0.0PHP ^7.0

1.1.0PHP ^7.3 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![pbromb](https://avatars.githubusercontent.com/u/16881418?v=4)](https://github.com/pbromb "pbromb (2 commits)")[![mgrajcarek](https://avatars.githubusercontent.com/u/1970?v=4)](https://github.com/mgrajcarek "mgrajcarek (1 commits)")

---

Tags

numco

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/inelo-numco/health.svg)

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

###  Alternatives

[shipmonk/composer-dependency-analyser

Fast detection of composer dependency issues (dead dependencies, shadow dependencies, misplaced dependencies)

6198.4M666](/packages/shipmonk-composer-dependency-analyser)[phpcompatibility/phpcompatibility-paragonie

A set of rulesets for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by the Paragonie polyfill libraries.

1035.1M10](/packages/phpcompatibility-phpcompatibility-paragonie)[mmirus/gravity-forms-data-attributes

Add custom data attributes to Gravity Forms fields.

161.6k](/packages/mmirus-gravity-forms-data-attributes)

PHPackages © 2026

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