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

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

gamee/php-collections
=====================

package of useful collections for php

v5.0.0(9mo ago)032.4k↑135.7%1MITPHPPHP &gt;=8.0

Since Jan 10Pushed 9mo ago5 watchersCompare

[ Source](https://github.com/gameeapp/php-collections)[ Packagist](https://packagist.org/packages/gamee/php-collections)[ RSS](/packages/gamee-php-collections/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (28)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/b767ed0043917649dac280e34ba5c9c7d4a3613698edd42b1e71c68a876176eb/68747470733a2f2f706f7365722e707567782e6f72672f67616d65652f7068702d636f6c6c656374696f6e732f762f737461626c65)](https://packagist.org/packages/gamee/php-collections)[![License](https://camo.githubusercontent.com/5ae7391e902aa48fcc271ddb3f98d260563c92628b709baa600d38c17cd09991/68747470733a2f2f706f7365722e707567782e6f72672f67616d65652f7068702d636f6c6c656374696f6e732f6c6963656e7365)](https://packagist.org/packages/gamee/php-collections)[![Total Downloads](https://camo.githubusercontent.com/d046e87242be8b6df3d359959dcf3ef6f7dee069452375051d58306820ed0575/68747470733a2f2f706f7365722e707567782e6f72672f67616d65652f7068702d636f6c6c656374696f6e732f646f776e6c6f616473)](https://packagist.org/packages/gamee/php-collections)[![Build Status](https://camo.githubusercontent.com/195a9ddb9b7ac083fac8c51f4ca5c0b625e22df101c225a0f3ddc40194e0d5f0/68747470733a2f2f7472617669732d63692e6f72672f67616d65656170702f6e657474652d7261626269746d712e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gameeapp/nette-rabbitmq)

php-collections
===============

[](#php-collections)

Useful PHP utilities (Collections, Iterators, etc)

UniqueObjectCollection usage
----------------------------

[](#uniqueobjectcollection-usage)

```
use Gamee\Collections\Collection\UniqueObjectCollection;

/**
 * @extends UniqueObjectCollection
 */
final class UserDataCollection extends UniqueObjectCollection
{

	/**
	 * @param UserData $item
	 * @return string|int
	 */
	protected function getIdentifier(object $item)
	{
		return $item->getId();
	}
}
```

ObjectIterator usage
--------------------

[](#objectiterator-usage)

```
use Gamee\Collections\Iterator\ObjectIterator;

class UserCredentialsDataIterator extends ObjectIterator
{

	public function current(): UserCredentialsData
	{
		return parent::current();
	}
}
```

ImmutableObjectCollection
-------------------------

[](#immutableobjectcollection)

```
use Gamee\Collections\Collection\ImmutableObjectCollection;

final class UserDataCollection extends ImmutableObjectCollection
{

	protected function getItemType(): string
	{
		return UserData::class;
	}

	public function current(): UserData
	{
		return parent::current();
	}
}
```

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance57

Moderate activity, may be stable

Popularity27

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor1

Top contributor holds 50.7% 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 ~117 days

Recently: every ~320 days

Total

25

Last Release

282d ago

Major Versions

v1.6.0 → v2.0.02020-04-02

v2.3.0 → v3.0.02020-08-28

v3.1.0 → v4.0.02022-03-23

v4.3.0 → v5.0.02025-09-25

PHP version history (3 changes)v1.3.1PHP &gt;=7.1

v2.0.0PHP &gt;=7.4

v4.0.0PHP &gt;=8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1488874?v=4)[Pavel Janda](/maintainers/paveljanda)[@paveljanda](https://github.com/paveljanda)

---

Top Contributors

[![paveljanda](https://avatars.githubusercontent.com/u/1488874?v=4)](https://github.com/paveljanda "paveljanda (34 commits)")[![TomPavelec](https://avatars.githubusercontent.com/u/46928405?v=4)](https://github.com/TomPavelec "TomPavelec (22 commits)")[![31vi5](https://avatars.githubusercontent.com/u/6782665?v=4)](https://github.com/31vi5 "31vi5 (5 commits)")[![pilec](https://avatars.githubusercontent.com/u/557455?v=4)](https://github.com/pilec "pilec (4 commits)")[![arziel12](https://avatars.githubusercontent.com/u/11194301?v=4)](https://github.com/arziel12 "arziel12 (2 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

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

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

PHPackages © 2026

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