PHPackages                             jmikola/wildcard-event-dispatcher-bundle - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. jmikola/wildcard-event-dispatcher-bundle

ActiveSymfony-bundle[Queues &amp; Workers](/categories/queues)

jmikola/wildcard-event-dispatcher-bundle
========================================

Enhances the Symfony2 event dispatcher with support for wildcard patterns inspired by AMQP topic exchanges.

v1.0.3(9y ago)35138.8k6[1 PRs](https://github.com/jmikola/JmikolaWildcardEventDispatcherBundle/pulls)1MITPHPPHP &gt;=5.3.2

Since Feb 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/jmikola/JmikolaWildcardEventDispatcherBundle)[ Packagist](https://packagist.org/packages/jmikola/wildcard-event-dispatcher-bundle)[ Docs](https://github.com/jmikola/JmikolaWildcardEventDispatcherBundle)[ RSS](/packages/jmikola-wildcard-event-dispatcher-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (9)Versions (6)Used By (1)

JmikolaWildcardEventDispatcherBundle
====================================

[](#jmikolawildcardeventdispatcherbundle)

[![Build Status](https://camo.githubusercontent.com/6c603751c36b0e2ea28a2974ab6bce725d8a2d2d43d1b0fa0c430351ea1df158/68747470733a2f2f7472617669732d63692e6f72672f6a6d696b6f6c612f4a6d696b6f6c6157696c64636172644576656e744469737061746368657242756e646c652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/jmikola/JmikolaWildcardEventDispatcherBundle)

This bundle integrates the [WildcardEventDispatcher](https://github.com/jmikola/WildcardEventDispatcher) library with Symfony and allows event listeners to be assigned using a wildcard pattern inspired by AMQP topic exchanges.

Symfony's event dispatcher component and the framework's existing convention for event names (dot-separated words) is already quite similar to AMQP message routing keys. This bundle is intended to be used sparingly, where wildcards may replace verbose configuration for central listeners, such as an activity logging service.

Some background info for this bundle may be found on the [symfony-devs](https://groups.google.com/d/topic/symfony-devs/GWeOTMfKg9s/discussion)mailing list.

Compatibility
-------------

[](#compatibility)

This bundle requires Symfony 2.3 or above.

Configuration
-------------

[](#configuration)

There are no configuration options. Symfony will load the bundle's dependency injection extension automatically.

The extension will create a service that [composes](http://en.wikipedia.org/wiki/Object_composition) the existing `event_dispatcher` service and assumes its service ID. Depending on whether debug mode is enabled, this bundle may wrap an instance of FrameworkBundle's `ContainerAwareEventDispatcher` or `TraceableEventDispatcher` class.

Listening on Wildcard Event Patterns
------------------------------------

[](#listening-on-wildcard-event-patterns)

This bundle enables you to use the single-word `*` and multi-word `#` wildcards when assigning event listeners. The wildcard operators are described in greater detail in the documentation for [WildcardEventDispatcher](https://github.com/jmikola/WildcardEventDispatcher).

### Single-word Wildcard

[](#single-word-wildcard)

Consider the scenario where the `acme.listener` service is currently listening on multiple `core` events:

```

```

You could refactor the above configuration to use the single-word `*` wildcard:

```

```

This listener will now observe all events starting with `core.` and followed by another word. An event named `core` would also be matched by this pattern.

### Multi-word Wildcard

[](#multi-word-wildcard)

Suppose there was an event in your application named `core.foo.bar`. The aforementioned `core.*` pattern would not match this event. You could use:

```

```

This syntax would match `core.foo` and `core.foo.bar`, but `core` would no longer be matched (assuming there was such an event); however, the multi-word `#` wildcard would allow all of these event names to be matched:

```

```

The `#` wildcard could also be used to listen to *all* events in the application:

```

```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity38

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 98.3% 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 ~432 days

Total

4

Last Release

3527d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/49096f4052ca788ddf49c82e835125294f460f155885aa3e1ada8c3ff4f4a648?d=identicon)[jmikola](/maintainers/jmikola)

---

Top Contributors

[![jmikola](https://avatars.githubusercontent.com/u/244663?v=4)](https://github.com/jmikola "jmikola (57 commits)")[![korotovsky](https://avatars.githubusercontent.com/u/104727?v=4)](https://github.com/korotovsky "korotovsky (1 commits)")

---

Tags

eventevent dispatcherAMQPdispatcher

### Embed Badge

![Health badge](/badges/jmikola-wildcard-event-dispatcher-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/jmikola-wildcard-event-dispatcher-bundle/health.svg)](https://phpackages.com/packages/jmikola-wildcard-event-dispatcher-bundle)
```

###  Alternatives

[php-amqplib/rabbitmq-bundle

Integrates php-amqplib with Symfony &amp; RabbitMq. Formerly emag-tech-labs/rabbitmq-bundle, oldsound/rabbitmq-bundle.

1.3k20.1M65](/packages/php-amqplib-rabbitmq-bundle)[jmikola/wildcard-event-dispatcher

Event dispatcher with support for wildcard patterns inspired by AMQP topic exchanges.

32320.9k2](/packages/jmikola-wildcard-event-dispatcher)[webfactory/icu-translation-bundle

Enables ICU message formatting for translations in Symfony applications.

2761.8k](/packages/webfactory-icu-translation-bundle)[shapecode/twig-template-event-bundle

Possibility to add code in a twig template dynamically

1010.7k](/packages/shapecode-twig-template-event-bundle)

PHPackages © 2026

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