PHPackages                             constup-foss/php-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. constup-foss/php-collections

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

constup-foss/php-collections
============================

A set of PHP collections

1.1.0(2mo ago)01MITPHPPHP &gt;=8.5

Since May 24Pushed 2mo agoCompare

[ Source](https://github.com/constup-foss/php-collections)[ Packagist](https://packagist.org/packages/constup-foss/php-collections)[ Fund](https://www.buymeacoffee.com/puew3hvwvp)[ Patreon](https://www.patreon.com/c/NikolaStojiljkovic)[ RSS](/packages/constup-foss-php-collections/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

constUP PHP Collections
=======================

[](#constup-php-collections)

Table of Contents

- [Description](#description)
- [Installation](#installation)
- [Available collections](#available-collections)
- [Supporting development](#supporting-development)
- [License](#license)

[![Static Badge](https://camo.githubusercontent.com/f0629fe9af5392e2931117f774b806fbfc5dcb814431d348385ce99f36b21ba6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d5e382e352d626c7565)](https://camo.githubusercontent.com/f0629fe9af5392e2931117f774b806fbfc5dcb814431d348385ce99f36b21ba6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d5e382e352d626c7565)[![Static Badge](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)](https://camo.githubusercontent.com/5caa455d8debc46fb23abbadb45a733a937f3910a73fc875c2f7820468e1bb54/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e)[![Packagist Downloads](https://camo.githubusercontent.com/86862a1763f8c40bd2662cadd35dd7fed3999bfe3c4ea5167523cb7331029058/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6e737475702d666f73732f7068702d636f6c6c656374696f6e73)](https://camo.githubusercontent.com/86862a1763f8c40bd2662cadd35dd7fed3999bfe3c4ea5167523cb7331029058/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6e737475702d666f73732f7068702d636f6c6c656374696f6e73)

Description
-----------

[](#description)

A set of ready-to-use collections for PHP.

The main goal of this library is to provide a set of reusable, independent, standalone collections classified by their features and intended use scenarios. It is developed as an alternative to using specific collections from much bigger libraries whose focus is on a completely different feature set, but have collections implemented as an internal requirement.

In short, if your project needs support for collections, but you don’t need DoctrineORM (or any other software package that has collections), this library is for you.

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

[](#installation)

```
composer require constup-foss/php-collections
```

Available collections
---------------------

[](#available-collections)

The following collections are implemented. Their documentation is available on linked pages:

- [Eager, immutable, untyped collection](doc/collection/eager/immutable/untyped.adoc)
- [Eager, immutable, typed collection](doc/collection/eager/immutable/typed.adoc)

Technical documentation is available on a separate documentation page: [Documentation Home](doc/index.adoc)

Supporting development
----------------------

[](#supporting-development)

If you like this library or find it useful, consider buying me a nice cup of coffee. Coffee fuels open source.

[![bmac](doc/bmac.png)](doc/bmac.png)

[![default green](https://camo.githubusercontent.com/6d00276d6e09b1c1a8391562c40e2c387f266c3518fdb25a19429d30aa22ef7a/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d677265656e2e706e67)](https://www.buymeacoffee.com/puEW3HvWvP)

License
-------

[](#license)

MIT License

- License file: [LICENSE.txt](LICENSE.txt)
- Online version:

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance88

Actively maintained with recent releases

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Total

3

Last Release

60d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/286199137?v=4)[constUP](/maintainers/constup-foss)[@constup-foss](https://github.com/constup-foss)

---

Top Contributors

[![constup-foss](https://avatars.githubusercontent.com/u/286199137?v=4)](https://github.com/constup-foss "constup-foss (4 commits)")

---

Tags

collectioncollectionscollections-phpcomposercomposer-librarycomposer-packagephpphp8phparraycollectioncollectionslist

###  Code Quality

TestsPHPUnit

Static AnalysisRector

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/constup-foss-php-collections/health.svg)

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

###  Alternatives

[doctrine/collections

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

6.0k430.2M1.5k](/packages/doctrine-collections)[graze/sort

A collection of array sorting transforms and functions

11298.3k2](/packages/graze-sort)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2519.5k](/packages/iteks-laravel-enum)[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.1k1](/packages/rotexsoft-versatile-collections)

PHPackages © 2026

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