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

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

kasseler/collection
===================

Array collection library

1.0.2(11y ago)027MITPHPPHP &gt;=5.4.0

Since Mar 15Pushed 11y ago1 watchersCompare

[ Source](https://github.com/RobinCK/collection)[ Packagist](https://packagist.org/packages/kasseler/collection)[ Docs](http://kasseler-cms.net)[ RSS](/packages/kasseler-collection/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Collection Component
====================

[](#collection-component)

[![Build Status](https://camo.githubusercontent.com/7b6a3d39d62c0886712e81d340d6d90f086db73f4fd2897933ab13935e5a9e5c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f526f62696e434b2f636f6c6c656374696f6e2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/RobinCK/collection/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3c9ba29d1a841abaffdb0d4766f05c31f44db043266d8cdc835585280f2ff260/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f526f62696e434b2f636f6c6c656374696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/RobinCK/collection/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/186b88e2f86f6bc6e23021a459ccc154f07c1eaec9131e28ef1eb16e10dd6dd9/68747470733a2f2f706f7365722e707567782e6f72672f6b617373656c65722f636f6c6c656374696f6e2f762f737461626c652e737667)](https://packagist.org/packages/kasseler/cache)[![Total Downloads](https://camo.githubusercontent.com/98664d73e30033c550f5f9a69afcb0feb6c5f5ddb3b4d242924abc01f4d872f7/68747470733a2f2f706f7365722e707567782e6f72672f6b617373656c65722f636f6c6c656374696f6e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/kasseler/collection)[![Latest Unstable Version](https://camo.githubusercontent.com/faaf35fb8de4472879a7001205ae11921ceda7b5ca28693504ad820da9141c92/68747470733a2f2f706f7365722e707567782e6f72672f6b617373656c65722f636f6c6c656374696f6e2f762f756e737461626c652e737667)](https://packagist.org/packages/kasseler/collection)[![License](https://camo.githubusercontent.com/0280a815b37453fd9d514e6bcefd62e907b579fb503f5e81efd3258ce8b0c5ec/68747470733a2f2f706f7365722e707567782e6f72672f6b617373656c65722f636f6c6c656374696f6e2f6c6963656e73652e737667)](https://packagist.org/packages/kasseler/collection)

### Requirements

[](#requirements)

- PHP &gt;= 5.4

### Installation

[](#installation)

```
$ composer require kasseler/collection
```

### Usage

[](#usage)

```
$collection = new ArrayCollection([
    'one' => 1,
    'two' => 2,
    'three' => 3,
    'four' => 4,
    'five' => 5,
]);

echo $collection->get('one'); // return one key
echo $collection->two; // return two key
echo $collection['three']; // return three key

foreach ($collection as $key => $value) {
    /*
    * return
    * key[one]   = '1';
    * key[two]   = '2';
    * key[three] = '3';
    * key[four]  = '4';
    * key[five]  = '5';
    */
    echo sprintf("\nkey[%s] = '%s';", $key, $value);
}

echo $collection; //return serialize array

unset($collection['four']);
$collection->remove('five');

echo count($collection); // return 3
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

4118d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24ea64ad06776e5f6ad1e3d4e2bceb16dab50e52445699db7d6f942cd91de3eb?d=identicon)[kasseler](/maintainers/kasseler)

---

Top Contributors

[![RobinCK](https://avatars.githubusercontent.com/u/10226014?v=4)](https://github.com/RobinCK "RobinCK (5 commits)")

### Embed Badge

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

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

###  Alternatives

[browner12/helpers

generic helpers

289706.7k7](/packages/browner12-helpers)[illuminated/helper-functions

Laravel-specific and pure PHP Helper Functions.

107593.0k7](/packages/illuminated-helper-functions)

PHPackages © 2026

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