PHPackages                             dwo/aggregator - 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. dwo/aggregator

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

dwo/aggregator
==============

collect and aggregate data for statistical analysis

v1.3.3(9y ago)0209MITPHPPHP &gt;=5.3.0

Since Sep 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/davewwww/Aggregator)[ Packagist](https://packagist.org/packages/dwo/aggregator)[ Docs](https://github.com/davewwww)[ RSS](/packages/dwo-aggregator/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (4)Versions (10)Used By (0)

[![Build Status](https://camo.githubusercontent.com/d303e93e4aa770419c00415b6dabc7f1c0e7b49f2d29e07f4283cbc847f3a1c8/68747470733a2f2f7472617669732d63692e6f72672f64617665777777772f41676772656761746f722e737667)](https://travis-ci.org/davewwww/Aggregator) [![Coverage Status](https://camo.githubusercontent.com/74ff1f1efdc2a78d771c4a6915956e6f08cad12e159152a66742091e3ec66673/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f64617665777777772f41676772656761746f722f62616467652e737667)](https://coveralls.io/r/davewwww/Aggregator) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/3847673a96afd2f2038803b1f7e10a7c98e383770b41e3165c8b47a38b95448a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64617665777777772f41676772656761746f722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/davewwww/Aggregator/?branch=master)

Aggregator
----------

[](#aggregator)

collect, group &amp; aggregate data

```
$collector = new Collector(array('country'));
$collector->addEntry(['country' => 'DE', 'counts'=>1]);
$collector->addEntry(['country' => 'DE', 'counts'=>2]);
$collector->addEntry(['country' => 'AT', 'counts'=>2]);
$collector->addEntry(['country' => 'AT', 'counts'=>3]);

$aggregationGroup = Aggregator::aggregate($collector);

print_r($aggregationGroup->toArray());
```

```
Array (
    [DE] => Array (
        [country] => DE
        [counts] => 3
    )
    [AT] => Array (
        [country] => AT
        [counts] => 5
    )
)
```

Merger
------

[](#merger)

merge two arrays

```
$origin = ['counts' => 1];
$merge = ['counts' => 2];

Merger::merge($origin, $merge);

print_r($origin);
```

```
Array
(
    [counts] => 3
)
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

9

Last Release

3508d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/92fbda736c9e7b2a06e4d23b0e3768f3f7cec3a609540808ef5db10c348231c0?d=identicon)[dave](/maintainers/dave)

---

Tags

analysiscollectstatisticaggregate

### Embed Badge

![Health badge](/badges/dwo-aggregator/health.svg)

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

###  Alternatives

[symfony/ux-autocomplete

JavaScript Autocomplete functionality for Symfony

635.5M36](/packages/symfony-ux-autocomplete)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

53675.5k15](/packages/solspace-craft-freeform)[api-platform/symfony

Symfony API Platform integration

354.0M110](/packages/api-platform-symfony)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49517.1k](/packages/blackfire-player)[symfony/ai-platform

PHP library for interacting with AI platform provider.

521.2M216](/packages/symfony-ai-platform)[api-platform/serializer

API Platform core Serializer

244.3M71](/packages/api-platform-serializer)

PHPackages © 2026

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