PHPackages                             kompakt/collection-runner - 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. kompakt/collection-runner

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

kompakt/collection-runner
=========================

Little helper to run through a collection of things with event-emitting along the way

1.1.0(7y ago)01391PHPPHP &gt;=5.4.0CI failing

Since Jun 11Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/kompakt/collection-runner)[ Packagist](https://packagist.org/packages/kompakt/collection-runner)[ RSS](/packages/kompakt-collection-runner/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (4)Used By (1)

Kompakt\\CollectionRunner
=========================

[](#kompaktcollectionrunner)

Little helper to run through a collection of things with event-emitting along the way.

Install
-------

[](#install)

Through Composer:

- `composer require kompakt/collection-runner`

Example
-------

[](#example)

Step through a list in portions (pages) of 5 items

```
use Kompakt\CollectionRunner\Console\Subscriber\Debugger;
use Kompakt\CollectionRunner\Runner;
use Kompakt\CollectionRunner\EventNames;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\EventDispatcher\EventDispatcher;

$dispatcher = new EventDispatcher();
$eventNames = new EventNames();
$runner = new Runner($dispatcher, $eventNames);
$debugger = new Debugger($dispatcher, $eventNames);
$debugger->activate(new ConsoleOutput());

$countries = [
    'Andorra',
    'Austria',
    'Australia',
    'Brazil',
    'Chile',
    'Cuba',
    'Germany',
    'Finland',
    'France',
    'Guatemala',
    'Italy',
    'Lebanon',
    'Morocco',
    'Nepal',
    'Russia',
    'Switzerland',
    'Thailand'
];

$getCountriesCallable = function($first, $max) use ($countries)
{
    return array_slice($countries, $first, $max);
};

$runner->run(count($countries), $getCountriesCallable, 5);
```

License
-------

[](#license)

kompakt/collection-runner is licensed under the MIT license - see the LICENSE file for details

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance50

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

2700d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2da6dbd345cdda268ff447c0446b142346c03ab4c0bc13e3283369c458d57912?d=identicon)[kompakt](/maintainers/kompakt)

---

Top Contributors

[![sirprize](https://avatars.githubusercontent.com/u/81617?v=4)](https://github.com/sirprize "sirprize (23 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kompakt-collection-runner/health.svg)

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

###  Alternatives

[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k257.0M27.8k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.7k39.6k](/packages/matomo-matomo)[shopware/platform

The Shopware e-commerce core

3.4k1.5M3](/packages/shopware-platform)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M668](/packages/shopware-core)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

86337.5k](/packages/flow-php-flow)

PHPackages © 2026

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