PHPackages                             wnowicki/collections - 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. wnowicki/collections

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

wnowicki/collections
====================

PHP Collections

0.4.0(10y ago)015MITPHPPHP &gt;=5.5.0

Since May 23Pushed 10y ago2 watchersCompare

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

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

PHP Collections
===============

[](#php-collections)

by WNowicki

[![Latest Version on Packagist](https://camo.githubusercontent.com/d83438a99abd71f0ee7ae83dae4699b2dd7ef63f97ed02b7508bd7a9721bb75d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776e6f7769636b692f636f6c6c656374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wnowicki/collections)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/16d709d56824952bfa33232a1a2dae7ad7a30d8d47da4a4989c693e0b7da4677/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f776e6f7769636b692f636f6c6c656374696f6e732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/wnowicki/collections)[![Coverage Status](https://camo.githubusercontent.com/de4e7e889a3dfe6cc8c3dea33dc78684814a0b715bfb10559aa11b2ac2483926/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f776e6f7769636b692f636f6c6c656374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/wnowicki/collections/code-structure)[![Quality Score](https://camo.githubusercontent.com/8c35855419df16c8c225e75df019822123a975a81a15d0b0f3f039c85b9ee661/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f776e6f7769636b692f636f6c6c656374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/wnowicki/collections)[![Total Downloads](https://camo.githubusercontent.com/520d50d290a1442e8c6290028400bbef9487c6332cae64e4d685b45ec4a00ad7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776e6f7769636b692f636f6c6c656374696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/wnowicki/collections)

Install
-------

[](#install)

### Requirements

[](#requirements)

- `PHP >=5.5.0`

### Composer Installation

[](#composer-installation)

To install *collection* library you will need to use [Composer](http://getcomposer.org/) in your project. If you aren't using Composer yet, it's really simple!

```
curl -sS https://getcomposer.org/installer | php
```

### Collections Installation

[](#collections-installation)

```
php composer.phar require wnowicki/collections
```

Example
-------

[](#example)

```
$collection = ObjectCollection::make('\Fruit');

$collection->add(new Apple())
    ->add(new Orange())
    ->add(new Apple());
```

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)

- [Wojciech Nowicki](https://github.com/wnowicki)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

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

Total

4

Last Release

3943d ago

PHP version history (2 changes)0.1.0PHP &gt;=5.0.0

0.2.0PHP &gt;=5.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/130d2a3a039f00925395a3c2665077f39d038c45634fa0bb7b584c6b5928743a?d=identicon)[wnowicki](/maintainers/wnowicki)

---

Top Contributors

[![wnowicki](https://avatars.githubusercontent.com/u/3448809?v=4)](https://github.com/wnowicki "wnowicki (51 commits)")

---

Tags

collections

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wnowicki-collections/health.svg)

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

###  Alternatives

[doctrine/collections

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

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

Collection library for PHP

5351.0M25](/packages/dusank-knapsack)[qaribou/immutable.php

Immutable, highly-performant collections, well-suited for functional programming and memory-intensive applications.

344146.0k](/packages/qaribou-immutablephp)[ilya/belt

A handful of tools for PHP developers.

71020.8k1](/packages/ilya-belt)[xi/collections

Functional, immutable and extensible enumerations and collections for PHP 5.3.

26100.6k1](/packages/xi-collections)[malarzm/collections

Various implementations of Doctrine's Collection interface

2368.1k](/packages/malarzm-collections)

PHPackages © 2026

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