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

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

decodelabs/collections
======================

Reusable collection components

v0.12.2(6mo ago)231.7k↓100%2MITPHPPHP ^8.4CI passing

Since Sep 10Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/decodelabs/collections)[ Packagist](https://packagist.org/packages/decodelabs/collections)[ RSS](/packages/decodelabs-collections/feed)WikiDiscussions develop Synced today

READMEChangelog (10)Dependencies (5)Versions (47)Used By (2)

Collections
===========

[](#collections)

[![PHP from Packagist](https://camo.githubusercontent.com/9ccae6ec7c6203d300fec11d45e1a0af6d49ae88cb769746ba89a819aded45db/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6465636f64656c6162732f636f6c6c656374696f6e733f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/collections)[![Latest Version](https://camo.githubusercontent.com/38b2a564d16d1682afe1dcab822c9d5d255723bfd5c9e3e2b60bea793ff944e5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465636f64656c6162732f636f6c6c656374696f6e732e7376673f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/collections)[![Total Downloads](https://camo.githubusercontent.com/2cafbf8d8957bd5a71ba2b2fa5bd1299641c9c1b094e690c35edab977be7a30f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6465636f64656c6162732f636f6c6c656374696f6e732e7376673f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/collections)[![GitHub Workflow Status](https://camo.githubusercontent.com/a2969c10931518ad0b181cca4d2b5aa7c5093c7767e32776da0d976382dedff0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6465636f64656c6162732f636f6c6c656374696f6e732f696e746567726174652e796d6c3f6272616e63683d646576656c6f70)](https://github.com/decodelabs/collections/actions/workflows/integrate.yml)[![PHPStan](https://camo.githubusercontent.com/e25c14ce011edabdd0fbd2e10415b41cc5d66ed11ef3e5b7edd074c5bdd35a2d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d3434434331312e7376673f6c6f6e6743616368653d74727565267374796c653d666c6174)](https://github.com/phpstan/phpstan)[![License](https://camo.githubusercontent.com/160382716336a8e4b442d28ee9e71e3e3ad9e887e35c857e4e38a508e726b9b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6465636f64656c6162732f636f6c6c656374696f6e733f7374796c653d666c6174)](https://packagist.org/packages/decodelabs/collections)

### Reusable collections for PHP

[](#reusable-collections-for-php)

Wait, another collections library for PHP? Yup.. there's plenty out there. This one is specifically for the sake of functionality over speed, and for use as foundation for more complex structures.

If you're after standard collections, you should check out the [PHP Ds extension](https://www.php.net/manual/en/book.ds.php).

---

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

[](#installation)

This package requires PHP 8.4 or higher.

Install via Composer:

```
composer require decodelabs/collections
```

Usage
-----

[](#usage)

Coming soon...

Licensing
---------

[](#licensing)

Collections is licensed under the MIT License. See [LICENSE](./LICENSE) for the full license text.

###  Health Score

52

—

FairBetter than 97% of packages

Maintenance74

Regular maintenance activity

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity78

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

Recently: every ~16 days

Total

45

Last Release

184d ago

PHP version history (5 changes)v0.5.0PHP ^7.2

v0.6.0PHP ^7.2|^8.0

v0.7.0PHP ^8.0

v0.9.0PHP ^8.1

v0.10.0PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a241d64d12b3b5ee94197862ec1ec30b82ed2efa34a0cd7f4c3565a021daddd?d=identicon)[betterthanclay](/maintainers/betterthanclay)

---

Top Contributors

[![betterthanclay](https://avatars.githubusercontent.com/u/1273586?v=4)](https://github.com/betterthanclay "betterthanclay (253 commits)")

---

Tags

collectiondatastructuresphpdatacollectionstructure

### Embed Badge

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

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

###  Alternatives

[fakerphp/faker

Faker is a PHP library that generates fake data for you.

3.9k349.3M2.9k](/packages/fakerphp-faker)[dflydev/dot-access-data

Given a deep data structure, access data by dot notation.

715349.0M76](/packages/dflydev-dot-access-data)[graze/data-structure

Data collections and containers

12285.1k8](/packages/graze-data-structure)[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.

2515.8k](/packages/iteks-laravel-enum)[michaels/data-manager

Simple data manager for nested data, dot notation array access, extendability, and container interoperability.

131.8k2](/packages/michaels-data-manager)

PHPackages © 2026

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