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

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

gusarov112/abstract-collection
==============================

A simple abstract class mostly for entities, models, value objects

v1.0.3(5y ago)04MITPHPPHP ^7.1

Since Jul 10Pushed 5y agoCompare

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

READMEChangelog (4)DependenciesVersions (5)Used By (0)

Abstract Collection
===================

[](#abstract-collection)

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

[](#installation)

Require package

```
composer require gusarov112/abstract-collection
```

Usage
-----

[](#usage)

This is just recommendation how to use and how to implement.

```
/**
 * @method Bar[] getIterator()
 */
class BarCollection extends \Gusarov112\AbstractCollection\AbstractCollection
{
    public function __construct(Bar ...$items)
    {
        $this->items = $items;
    }

    public function addItem(Bar $item)
    {
        $this->items[] = $item;
    }
}
```

@TODO
=====

[](#todo)

1. Write tests
2. Make SplFixedArray benchmark again and post results in readme

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Total

4

Last Release

2181d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6aa671506ecf4f8a9adf9994926720a4d61bd17afba2645b78704d4f72819d85?d=identicon)[gusarov](/maintainers/gusarov)

---

Top Contributors

[![gusarov112](https://avatars.githubusercontent.com/u/1829821?v=4)](https://github.com/gusarov112 "gusarov112 (2 commits)")

---

Tags

collectiongeneric

### Embed Badge

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

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

###  Alternatives

[phpcollection/phpcollection

General-Purpose Collection Library for PHP

1.0k64.7M34](/packages/phpcollection-phpcollection)[aimeos/map

Easy and elegant handling of PHP arrays as array-like collection objects similar to jQuery and Laravel Collections

4.3k459.4k15](/packages/aimeos-map)[league/period

Time range API for PHP

7335.8M24](/packages/league-period)[loophp/collection

A (memory) friendly, easy, lazy and modular collection class.

745762.4k16](/packages/loophp-collection)[athari/yalinqo

YaLinqo, a LINQ-to-objects library for PHP

4581.2M5](/packages/athari-yalinqo)[lorisleiva/lody

Load files and classes as lazy collections in Laravel.

957.9M15](/packages/lorisleiva-lody)

PHPackages © 2026

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