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

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

doctrine/collections
====================

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

3.0.0(4mo ago)6.0k411.1M—4.1%183[28 issues](https://github.com/doctrine/collections/issues)20MITPHPPHP ^8.4CI passing

Since Jan 12Pushed 2w ago23 watchersCompare

[ Source](https://github.com/doctrine/collections)[ Packagist](https://packagist.org/packages/doctrine/collections)[ Docs](https://www.doctrine-project.org/projects/collections.html)[ Fund](https://www.doctrine-project.org/sponsorship.html)[ Patreon](https://www.patreon.com/phpdoctrine)[ RSS](/packages/doctrine-collections/feed)WikiDiscussions 3.1.x Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (46)Used By (20)

Doctrine Collections
====================

[](#doctrine-collections)

[![Build Status](https://github.com/doctrine/collections/workflows/Continuous%20Integration/badge.svg)](https://github.com/doctrine/collections/actions)[![Code Coverage](https://camo.githubusercontent.com/517bd5c76f09ac5a39f26c8cf05708bf16349c3a6f447ce6daccd0bc744cab57/68747470733a2f2f636f6465636f762e696f2f67682f646f637472696e652f636f6c6c656374696f6e732f6272616e63682f332e312e782f67726170682f62616467652e737667)](https://codecov.io/gh/doctrine/collections/branch/3.1.x)

Collections Abstraction library

###  Health Score

84

—

ExcellentBetter than 100% of packages

Maintenance88

Actively maintained with recent releases

Popularity86

Widely adopted with strong download metrics

Community58

Growing community involvement

Maturity93

Battle-tested with a long release history

 Bus Factor3

3 contributors hold 50%+ of commits

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

Recently: every ~17 days

Total

43

Last Release

53d ago

Major Versions

1.8.0 → 2.0.02022-09-28

2.6.0 → 3.0.02026-01-16

3.0.0 → 4.0.x-dev2026-01-20

PHP version history (7 changes)v1.0PHP &gt;=5.3.2

v1.4.0PHP ^5.6 || ^7.0

v1.5.0PHP ^7.1

v1.6.0PHP ^7.1.3

1.6.5PHP ^7.1.3 || ^8.0

2.0.0PHP ^8.1

3.0.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/892698bb1d3f6dae0e3a44abe3e26920ddb4eb000c6c583c87b4db5e5027e166?d=identicon)[beberlei](/maintainers/beberlei)

---

Top Contributors

[![greg0ire](https://avatars.githubusercontent.com/u/657779?v=4)](https://github.com/greg0ire "greg0ire (275 commits)")[![Ocramius](https://avatars.githubusercontent.com/u/154256?v=4)](https://github.com/Ocramius "Ocramius (62 commits)")[![beberlei](https://avatars.githubusercontent.com/u/26936?v=4)](https://github.com/beberlei "beberlei (47 commits)")[![derrabus](https://avatars.githubusercontent.com/u/1506493?v=4)](https://github.com/derrabus "derrabus (34 commits)")[![SenseException](https://avatars.githubusercontent.com/u/859964?v=4)](https://github.com/SenseException "SenseException (32 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (31 commits)")[![lcobucci](https://avatars.githubusercontent.com/u/201963?v=4)](https://github.com/lcobucci "lcobucci (26 commits)")[![jwage](https://avatars.githubusercontent.com/u/97422?v=4)](https://github.com/jwage "jwage (25 commits)")[![mikeSimonson](https://avatars.githubusercontent.com/u/907613?v=4)](https://github.com/mikeSimonson "mikeSimonson (22 commits)")[![Majkl578](https://avatars.githubusercontent.com/u/144181?v=4)](https://github.com/Majkl578 "Majkl578 (15 commits)")[![mpdude](https://avatars.githubusercontent.com/u/1202333?v=4)](https://github.com/mpdude "mpdude (14 commits)")[![nschoellhorn](https://avatars.githubusercontent.com/u/3925180?v=4)](https://github.com/nschoellhorn "nschoellhorn (14 commits)")[![VincentLanglet](https://avatars.githubusercontent.com/u/9052536?v=4)](https://github.com/VincentLanglet "VincentLanglet (12 commits)")[![guilhermeblanco](https://avatars.githubusercontent.com/u/208883?v=4)](https://github.com/guilhermeblanco "guilhermeblanco (11 commits)")[![vilartoni](https://avatars.githubusercontent.com/u/6759538?v=4)](https://github.com/vilartoni "vilartoni (9 commits)")[![alcaeus](https://avatars.githubusercontent.com/u/383198?v=4)](https://github.com/alcaeus "alcaeus (8 commits)")[![yannickl88](https://avatars.githubusercontent.com/u/5468127?v=4)](https://github.com/yannickl88 "yannickl88 (5 commits)")[![bakura10](https://avatars.githubusercontent.com/u/1198915?v=4)](https://github.com/bakura10 "bakura10 (5 commits)")[![diego9182](https://avatars.githubusercontent.com/u/176076009?v=4)](https://github.com/diego9182 "diego9182 (5 commits)")[![pine3ree](https://avatars.githubusercontent.com/u/3229979?v=4)](https://github.com/pine3ree "pine3ree (5 commits)")

---

Tags

phparraycollectionsiterators

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[cartalyst/collections

Collection Abstaction library for PHP.

76908.6k4](/packages/cartalyst-collections)

PHPackages © 2026

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