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

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

narrowspark/collection
======================

A Collections library for PHP.

v0.1.1(8y ago)119.6k[2 PRs](https://github.com/narrowspark/collection/pulls)MITPHPPHP ^7.0

Since Sep 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/narrowspark/collection)[ Packagist](https://packagist.org/packages/narrowspark/collection)[ Docs](https://github.com/narrowspark/collection)[ RSS](/packages/narrowspark-collection/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (5)Versions (6)Used By (0)

collection
==========

[](#collection)

[![Author](https://camo.githubusercontent.com/018ebedbe44f8f590bb7ca7fa60baf7dee5fad6ac186a0fa69dcc87eed4f76f0/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40616e6f6c696c61622d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/anolilab)[![Latest Version on Packagist](https://camo.githubusercontent.com/d2f1d9d6ae740382574f4ef6073767ff73a444fb8dbf958f1d34b2840d22c009/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6172726f77737061726b2f636f6c6c656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/narrowspark/collection)[![Total Downloads](https://camo.githubusercontent.com/18b1c5580d7de06b88f002499657509670839d29a78b226c4887328307deb484/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6172726f77737061726b2f636f6c6c656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/narrowspark/collection)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)

Master
------

[](#master)

[![Build Status](https://camo.githubusercontent.com/9484feb9adcfd090b673592fd509c98d9d392d134fc365abc72cc4ca7117a5dd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e6172726f77737061726b2f636f6c6c656374696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/narrowspark/collection)[![Coverage Status](https://camo.githubusercontent.com/c887440b506f2c0beecc480f2d13df6074e64399ae547bf5050f0e18ca93e546/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e6172726f77737061726b2f636f6c6c656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/narrowspark/collection/code-structure)[![Quality Score](https://camo.githubusercontent.com/c4b14c7aedbd15f61b94284f9b6102848f0a085787da744620bf73fd4dcb3722/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e6172726f77737061726b2f636f6c6c656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/narrowspark/collection)

Develop
-------

[](#develop)

[![Build Status](https://camo.githubusercontent.com/9484feb9adcfd090b673592fd509c98d9d392d134fc365abc72cc4ca7117a5dd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e6172726f77737061726b2f636f6c6c656374696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/narrowspark/collection)[![Coverage Status](https://camo.githubusercontent.com/c887440b506f2c0beecc480f2d13df6074e64399ae547bf5050f0e18ca93e546/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6e6172726f77737061726b2f636f6c6c656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/narrowspark/collection/code-structure)[![Quality Score](https://camo.githubusercontent.com/c4b14c7aedbd15f61b94284f9b6102848f0a085787da744620bf73fd4dcb3722/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e6172726f77737061726b2f636f6c6c656374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/narrowspark/collection)

Install
-------

[](#install)

Via Composer

```
$ composer require narrowspark/collection
```

Usage
-----

[](#usage)

```
echo "test";
```

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

[](#change-log)

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

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Daniel Bannert](https://github.com/prisis)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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

Total

3

Last Release

2855d ago

Major Versions

v0.1.1 → v1.0.0.x-dev2018-07-24

PHP version history (2 changes)v0.1.0PHP ^7.0

v1.0.0.x-devPHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/ca62e19a98f43cce88fa6733762bebbe26f4e7ee0b3d8defdadfd0b7082f77a0?d=identicon)[dani33](/maintainers/dani33)

---

Top Contributors

[![prisis](https://avatars.githubusercontent.com/u/2716058?v=4)](https://github.com/prisis "prisis (30 commits)")

---

Tags

librarycollectionsnarrowspark

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[doctrine/collections

PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.

6.0k411.1M1.2k](/packages/doctrine-collections)[league/iso3166

ISO 3166-1 PHP Library

70036.3M116](/packages/league-iso3166)[dekor/php-array-table

PHP Library for printing associative arrays as text table (similar to mysql terminal console)

296.6M2](/packages/dekor-php-array-table)

PHPackages © 2026

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