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

Abandoned → [getwarp/collection](/?search=getwarp%2Fcollection)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

spaceonfire/collection
======================

Framework agnostic PHP collections

2.5.2(4y ago)22.8k↓75%5MITPHPPHP ^7.2|^8.0

Since Oct 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/spaceonfire/collection)[ Packagist](https://packagist.org/packages/spaceonfire/collection)[ Docs](https://github.com/spaceonfire/collection)[ Fund](https://liberapay.com/hustlahusky)[ RSS](/packages/spaceonfire-collection/feed)WikiDiscussions 2.5.x Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (18)Used By (5)

Collection by spaceonfire
=========================

[](#collection-by-spaceonfire)

[![Latest Version on Packagist](https://camo.githubusercontent.com/47d4ed18a04beffd4902b80bbecc97fc1939112861100b05fd94e6d155459995/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73706163656f6e666972652f636f6c6c656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spaceonfire/collection)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/b69ff32f8148ff69f2f52bf62d8ccec3623868e53a171bd0bbd310c2eeb781ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73706163656f6e666972652f636f6c6c656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spaceonfire/collection)[![Code Coverage](https://camo.githubusercontent.com/89885ba1223aed701831f9741a4c4092acbf3d2cf64f49e502d157f99f408eda/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742d7371756172652675726c3d6874747073253341253246253246676973742e67697468756275736572636f6e74656e742e636f6d253246687573746c616875736b792532466436323630376331613265343730373935396230313432653065613837366364253246726177253246636f6c6c656374696f6e2e6a736f6e)](https://camo.githubusercontent.com/89885ba1223aed701831f9741a4c4092acbf3d2cf64f49e502d157f99f408eda/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742d7371756172652675726c3d6874747073253341253246253246676973742e67697468756275736572636f6e74656e742e636f6d253246687573746c616875736b792532466436323630376331613265343730373935396230313432653065613837366364253246726177253246636f6c6c656374696f6e2e6a736f6e)

Framework agnostic PHP collections.

Install
-------

[](#install)

Via Composer

```
$ composer require spaceonfire/collection
```

Usage
-----

[](#usage)

```
$collection = new spaceonfire\Collection\Collection([0, 1, 2, 3]);
//$collection->sum() === 6
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

[Report issues](https://github.com/spaceonfire/spaceonfire/issues) and [send Pull Requests](https://github.com/spaceonfire/spaceonfire/pulls) in the [main spaceonfire repository](https://github.com/spaceonfire/spaceonfire). Please see [CONTRIBUTING](https://github.com/spaceonfire/spaceonfire/blob/master/CONTRIBUTING.md) and [CODE\_OF\_CONDUCT](https://github.com/spaceonfire/spaceonfire/blob/master/CODE_OF_CONDUCT.md) for details.

Credits
-------

[](#credits)

- [Constantine Karnaukhov](https://github.com/hustlahusky)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity71

Established project with proven stability

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

Recently: every ~78 days

Total

18

Last Release

1541d ago

Major Versions

1.5.0 → 2.0.02020-06-04

2.5.x-dev → 3.0.x-dev2022-02-28

PHP version history (4 changes)1.0.0PHP ~7.1

1.3.0PHP ^7.2

2.1.1PHP ^7.2|^8.0

3.0.x-devPHP ^7.4|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3947942?v=4)[Constantine Karnaukhov](/maintainers/tntrex)[@tntrex](https://github.com/tntrex)

---

Top Contributors

[![tntrex](https://avatars.githubusercontent.com/u/3947942?v=4)](https://github.com/tntrex "tntrex (54 commits)")

---

Tags

collection

### Embed Badge

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

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

###  Alternatives

[phpcollection/phpcollection

General-Purpose Collection Library for PHP

1.0k64.0M34](/packages/phpcollection-phpcollection)[aimeos/map

Easy and elegant handling of PHP arrays as array-like collection objects similar to jQuery and Laravel Collections

4.2k412.9k11](/packages/aimeos-map)[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[loophp/collection

A (memory) friendly, easy, lazy and modular collection class.

745663.8k13](/packages/loophp-collection)[athari/yalinqo

YaLinqo, a LINQ-to-objects library for PHP

4561.2M5](/packages/athari-yalinqo)[lorisleiva/lody

Load files and classes as lazy collections in Laravel.

956.6M9](/packages/lorisleiva-lody)

PHPackages © 2026

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