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

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

nayjest/collection
==================

Collections for PHP

v2.3.0(10y ago)9114.3k↓17.5%1[4 issues](https://github.com/Nayjest/Collection/issues)3MITPHPPHP &gt;=5.4.0

Since Jul 10Pushed 4y ago2 watchersCompare

[ Source](https://github.com/Nayjest/Collection)[ Packagist](https://packagist.org/packages/nayjest/collection)[ RSS](/packages/nayjest-collection/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (37)Used By (3)

Collections for PHP
===================

[](#collections-for-php)

[![Build Status](https://camo.githubusercontent.com/56903baf6bd592f5381bbd5d59ba51ecdd03116aba694b297bcceb12e3272963/68747470733a2f2f7472617669732d63692e6f72672f4e61796a6573742f436f6c6c656374696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Nayjest/Collection)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b7451823125e5ca7f267ea4f1fa79243a7a83bc7859b6aa2ca80d539cdfa2931/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4e61796a6573742f436f6c6c656374696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Nayjest/Collection/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/aa57e70c72ddfed8445562096887702e9ec95e08df8e7b51f23ef265f55ea13a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4e61796a6573742f436f6c6c656374696f6e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Nayjest/Collection/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/2b810c64c36fbc5a2dd090faf92cfe80d0afe66a63474428356967d5145a044c/68747470733a2f2f706f7365722e707567782e6f72672f6e61796a6573742f636f6c6c656374696f6e2f762f737461626c65)](https://packagist.org/packages/nayjest/collection)

Requirements
------------

[](#requirements)

- php 5.4+

This package is not tested with [outdated versions of PHP](http://php.net/supported-versions.php).

If you need to use nayjest/builder in environments with php &lt;= 5.3, test it on your own.

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

[](#installation)

The recommended way of installing the component is through [Composer](https://getcomposer.org).

Run following command:

```
composer require nayjest/collection
```

Documentation
-------------

[](#documentation)

[Nayjest\\Collection\\Collection Class Reference](docs/collection.md)

See [API Documentation](http://nayjest.github.io/Collection/)

API Documentation is automatically generated and published to Github Pages on continuous integration server.

Testing
-------

[](#testing)

This package includes phpunit tests.

Testing command:

```
vendor/bin/phpunit
```

Security
--------

[](#security)

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

License
-------

[](#license)

© 2014—2016 Vitalii Stepanenko

Licensed under the MIT License.

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

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance11

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

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

Recently: every ~33 days

Total

35

Last Release

3694d ago

Major Versions

v0.5.4 → v1.0.02015-09-09

v1.7.3 → v2.0.02015-11-11

### Community

Maintainers

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

---

Top Contributors

[![Nayjest](https://avatars.githubusercontent.com/u/153999?v=4)](https://github.com/Nayjest "Nayjest (134 commits)")

---

Tags

collectioncollections

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[doctrine/collections

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

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

A simple way to create typed collections in PHP - build on Illuminate\\Support\\Collection

1128.2k5](/packages/vistik-typed-collections)[rotexsoft/versatile-collections

A collection package that can be extended to implement things such as a Dependency Injection Container, RecordSet objects for housing database records, a bag of http cookies, or technically any collection of items that can be looped over and whose items can each be accessed using array-access syntax or object property syntax.

186.0k1](/packages/rotexsoft-versatile-collections)

PHPackages © 2026

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