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

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

beta/collection.base
====================

1.2.1(1y ago)091↓100%1MITPHPPHP &gt;=8.0CI passing

Since Oct 8Pushed 1y ago2 watchersCompare

[ Source](https://github.com/beta-eto-code/collection.base)[ Packagist](https://packagist.org/packages/beta/collection.base)[ RSS](/packages/beta-collectionbase/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (1)

Установка
---------

[](#установка)

```
composer require beta/collection.base

```

**Пример работы с коллекцией**

```
use Collection\Base\ArrayDataCollectionItem;
use Collection\Base\Collection;

$items = [
    new ArrayDataCollectionItem(['name' => 'John', 'age' => 30]),
    new ArrayDataCollectionItem(['name' => 'Jane', 'age' => 25]),
    new ArrayDataCollectionItem(['name' => 'Mike', 'age' => 35]),
    new ArrayDataCollectionItem(['name' => 'Kile', 'age' => 25]),
];

$collection = new Collection($items);

$filteredCollection = $collection->filterByKey('age', 30, 35); // новая коллекция с 1 и 3 элементом исходной
$groupedCollection = $collection->groupByKey('age'); // коллекция из сгруппированных коллекций (GroupCollection) по значению age

$names = $collection->column('name'); // Все значения name
$uniqueAges = $collection->unique('age'); // все не повторяющиеся значения age

$firstItem = $collection->first(); // первый элемент коллекции
```

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance44

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

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

Total

4

Last Release

436d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c75fd54c926c6b835a6b6cd92514d60d55a285d35847b9f22aefcc7ad5ef9ae7?d=identicon)[nnagornyy](/maintainers/nnagornyy)

---

Top Contributors

[![alex19pov31](https://avatars.githubusercontent.com/u/786683?v=4)](https://github.com/alex19pov31 "alex19pov31 (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/beta-collectionbase/health.svg)

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

PHPackages © 2026

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