PHPackages                             bmack/kart-composer-plugin - 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. bmack/kart-composer-plugin

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

bmack/kart-composer-plugin
==========================

An composer plugin to fetch listeners provided by composer packages

71PHP

Since Mar 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/bmack/kart-composer-plugin)[ Packagist](https://packagist.org/packages/bmack/kart-composer-plugin)[ RSS](/packages/bmack-kart-composer-plugin/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Composer-based listener provider for PSR-14
===========================================

[](#composer-based-listener-provider-for-psr-14)

What does it do?
----------------

[](#what-does-it-do)

This package is a composer plugin that hooks before "dump autoload", generates a PHP class which contains Listeners that are simply registered by the "extra" section.

```
"extra": {
    "psr-14": {
        "default": "src/Listeners"
    }
}

```

This folder usually then contains listener classes/functions for PSR-14 events.

Once installed, all listeners are added to a class called

`Bmack\KartComposerPlugin\ComposerReflectionListenerProvider` which implements the PSR-14 `ListenerProvider` interface.

This is based on `roave/better-reflection`.

Due to composer's dependency tree, all listeners are loaded and executed based on their dependencies for a certain event.

Usage
-----

[](#usage)

1. Install the composer plugin or any package that depends on the package.
2. Add the ListenerProvider to your dispatcher implementation.

License
-------

[](#license)

MIT

Author
------

[](#author)

Benni Mack, 2019

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/165630?v=4)[Benni Mack](/maintainers/bmack)[@bmack](https://github.com/bmack)

---

Top Contributors

[![bmack](https://avatars.githubusercontent.com/u/165630?v=4)](https://github.com/bmack "bmack (2 commits)")

### Embed Badge

![Health badge](/badges/bmack-kart-composer-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/bmack-kart-composer-plugin/health.svg)](https://phpackages.com/packages/bmack-kart-composer-plugin)
```

###  Alternatives

[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

4743.5k10](/packages/phel-lang-phel-lang)[yii2mod/yii2-cart

Yii2 Shopping cart

11716.2k](/packages/yii2mod-yii2-cart)[ramsey/devtools

A Composer plugin to aid PHP library and application development.

7134.7k26](/packages/ramsey-devtools)[born05/craft-assetusage

Adds a column to see which assets are used or unused.

32128.6k](/packages/born05-craft-assetusage)[ekreative/uuid-extra-bundle

Paramconverter, Normalizer and Form Type for Ramsey Uuid

18168.6k](/packages/ekreative-uuid-extra-bundle)[ramsey/devtools-lib

The library behind ramsey/devtools, allowing for extension of the ramsey/devtools Composer plugin.

2333.9k2](/packages/ramsey-devtools-lib)

PHPackages © 2026

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