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

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

gephart/collections
===================

Gephart Collections Component

0.5.1(1y ago)02422MITPHPPHP &gt;=7.4

Since Oct 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/gephart/collections)[ Packagist](https://packagist.org/packages/gephart/collections)[ Docs](https://github.com/gephart/collections)[ RSS](/packages/gephart-collections/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (3)Versions (3)Used By (2)

Gephart Collections
===================

[](#gephart-collections)

[![php](https://github.com/gephart/collections/actions/workflows/php.yml/badge.svg?branch=master)](https://github.com/gephart/collections/actions)

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

[](#dependencies)

- PHP &gt;= 7.4

Instalation
-----------

[](#instalation)

```
composer require gephart/collections dev-master
```

Using
-----

[](#using)

### Collection without a specific type

[](#collection-without-a-specific-type)

```
$collection = new Gephart\Collections\Collection();

$collection->add("Something"); // Index - 0
$collection->add(123); // Index - 1

$item = $collection->get(1); // 123

$collection->remove(1); // Delete item with index 1

$items = $collection->all(); // [0 => "Something"];
```

### Collection with a specific type

[](#collection-with-a-specific-type)

```
class SpecificEntity { public $text = ""; }

$item1 = new SpecificEntity();
$item1->text = "first";

$item2 = new SpecificEntity();
$item2->text = "second";

$collection = new Gephart\Collections\Collection(SpecificEntity::class);

$collection->add($item1);
$collection->add($item2);
// Or use method collect(): $collection->collect([$item1, $item2]);

$item = $collection->get(1);
echo $item->text; // "second"
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

2

Last Release

703d ago

PHP version history (2 changes)0.5PHP &gt;=7.1

0.5.1PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ba9a3cad30ba7a773289e9da52832255f6f5a1f2eaaaa25a464186a47cb8c23?d=identicon)[MichalKatuscak](/maintainers/MichalKatuscak)

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

PHPackages © 2026

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