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

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

typomedia/collection
====================

Basic Collection Class

1.0.4(4y ago)0681MITPHPPHP &gt;=7.2

Since Jul 10Pushed 4y ago1 watchersCompare

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

READMEChangelog (5)Dependencies (3)Versions (6)Used By (1)

Basic Collection Class
======================

[](#basic-collection-class)

Ease of use collection class. 100% Code Coverage in Tests.

The Library is [PSR-1](https://www.php-fig.org/psr/psr-1/), [PSR-4](https://www.php-fig.org/psr/psr-4/), [PSR-12](https://www.php-fig.org/psr/psr-12/) compliant.

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

[](#requirements)

- `>= PHP 7.2`

Dependencies
------------

[](#dependencies)

- `none`

Install
-------

[](#install)

```
composer require typomedia/collection

```

Usage
-----

[](#usage)

```
use Typomedia\Collection\Collection;

$data = [
    'Moretti' => [
        'name' => 'Style Ale',
        'style' => 'European Amber Lager',
        'alcohol' => '9.1%'
    ]
];

$collection = new Collection();
$key = md5(serialize($data));

$collection->set((object)$data, $key);
$collection->get($key);
$collection->first();
$collection->last();
$collection->keys();
$collection->find('name', 'Style Ale');
$collection->delete($key);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

Total

5

Last Release

1551d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5276515?v=4)[Philipp Speck](/maintainers/typomedia)[@typomedia](https://github.com/typomedia)

---

Top Contributors

[![typomedia](https://avatars.githubusercontent.com/u/5276515?v=4)](https://github.com/typomedia "typomedia (8 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[5ini99/think-addons

addons package for thinkphp5

1453.2k](/packages/5ini99-think-addons)[metrakit/faker-eddy-malou

Use Eddy Malou sentences for your dummy texts

172.7k](/packages/metrakit-faker-eddy-malou)

PHPackages © 2026

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