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 3mo 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 today

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

36

—

LowBetter than 79% of packages

Maintenance53

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

2655d 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.5k245.4M24.0k](/packages/friendsofphp-php-cs-fixer)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.6k38.2k](/packages/matomo-matomo)[phpro/soap-client

A general purpose SoapClient library

8895.9M52](/packages/phpro-soap-client)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)

PHPackages © 2026

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