PHPackages                             leomaradan/collection-compact - 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. leomaradan/collection-compact

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

leomaradan/collection-compact
=============================

Compact collection of numbers to string

1.0.1(7y ago)076[1 PRs](https://github.com/Leomaradan/CollectionCompact/pulls)MITPHPPHP &gt;=5.3.0

Since Feb 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Leomaradan/CollectionCompact)[ Packagist](https://packagist.org/packages/leomaradan/collection-compact)[ RSS](/packages/leomaradan-collection-compact/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

CollectionCompact
=================

[](#collectioncompact)

Compact collection of numbers to string

For example, the following array :

\[1,2,3,4,5,7,10,12\]

will be compacted into the following string :

"1-5,7,10-12"

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

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

Total

2

Last Release

2673d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3043485?v=4)[Léo Maradan](/maintainers/Leomaradan)[@Leomaradan](https://github.com/Leomaradan)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/leomaradan-collection-compact/health.svg)

```
[![Health](https://phpackages.com/badges/leomaradan-collection-compact/health.svg)](https://phpackages.com/packages/leomaradan-collection-compact)
```

###  Alternatives

[sun-asterisk/laravel-domain-verify

Verify domain ownership for Laravel application

201.1k](/packages/sun-asterisk-laravel-domain-verify)

PHPackages © 2026

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