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

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

kompakt/directory-runner
========================

Run through a directory with event-emitting along the way

1.1.2(7y ago)01151PHPPHP &gt;=5.4.0CI failing

Since Jun 11Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/kompakt/directory-runner)[ Packagist](https://packagist.org/packages/kompakt/directory-runner)[ RSS](/packages/kompakt-directory-runner/feed)WikiDiscussions master Synced today

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

Kompakt\\DirectoryRunner
========================

[](#kompaktdirectoryrunner)

Run through a directory with event-emitting along the way.

Install
-------

[](#install)

Through Composer:

- `composer require kompakt/directory-runner`

Example
-------

[](#example)

Iterate over all `json` files in a given directory:

```
use Kompakt\DirectoryRunner\Subscriber\Debugger;
use Kompakt\DirectoryRunner\Runner;
use Kompakt\DirectoryRunner\EventNames;
use Symfony\Component\EventDispatcher\EventDispatcher;

$dir = 'path/to/dir';

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

$callback = function($fileInfo)
{
    return preg_match('/\.json$/', $fileInfo->getFilename());
};

$runner->run($callback);
```

License
-------

[](#license)

kompakt/directory-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 ~41 days

Total

3

Last Release

2858d 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 (17 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[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)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

84735.1k](/packages/flow-php-flow)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.4M524](/packages/shopware-core)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

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