PHPackages                             wildpascal/remote-event-dispatcher - 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. wildpascal/remote-event-dispatcher

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

wildpascal/remote-event-dispatcher
==================================

RemoteEventDispatcher for communicating between multiple systems.

06

Since May 5Compare

[ Source](https://github.com/wildpascal/remote-event-dispatcher)[ Packagist](https://packagist.org/packages/wildpascal/remote-event-dispatcher)[ RSS](/packages/wildpascal-remote-event-dispatcher/feed)WikiDiscussions Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Remote Event Dispatcher
=======================

[](#remote-event-dispatcher)

[![Build Status](https://camo.githubusercontent.com/da1cfbe1970a37a73030000625d66d1a281f62505a30c14f25b3fe5777579c3c/68747470733a2f2f7472617669732d63692e6f72672f77696c6470617363616c2f72656d6f74652d6576656e742d646973706174636865722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wildpascal/remote-event-dispatcher) [![Total Downloads](https://camo.githubusercontent.com/b25305dd630e883f19de53c6226f9ec40e0483d8885347b6e480c0965f73215e/68747470733a2f2f706f7365722e707567782e6f72672f77696c6470617363616c2f72656d6f74652d6576656e742d646973706174636865722f646f776e6c6f6164732e737667)](https://packagist.org/packages/wildpascal/remote-event-dispatcher) [![Latest Stable Version](https://camo.githubusercontent.com/ce9c94d8cec26490b9aa60e0d23e460fdef776f56a42ac9ec393e5fc99874387/68747470733a2f2f706f7365722e707567782e6f72672f77696c6470617363616c2f72656d6f74652d6576656e742d646973706174636865722f762f737461626c652e737667)](https://packagist.org/packages/wildpascal/remote-event-dispatcher)

RemoteEventDispatcher for communicating between multiple systems.

Installation
------------

[](#installation)

Require the bundle and its dependencies with composer:

```
$ composer require wildpascal/remote-event-dispatcher
```

Handler
-------

[](#handler)

Transport for Events. Possible Handlers:

- AmqpHandler (Handler to send Events via a queue which is implementing the Amqp protocol)

Dispatch Events
---------------

[](#dispatch-events)

To dispatch events you have to configure the RemoteEventDispatcher. The RemoteEventDispatcher requires a Handler.

You can dispatch every event which extends the AbstractEvent.

```
// Configuration for RabbitMQ or any other queue which is based on AMQP protocol
$queueName = 'remote_event_dispatcher';
$config = [
    'host' => 'localhost',
];
$connection = new \PhpAmqpLib\Connection\AMQPStreamConnection('localhost', 5672, 'guest', 'guest');
$channel = $connection->channel();

// Configure AmqpHandler
$handler = new \WP\RemoteEventDispatcher\Handler\Amqp\AmqpHandler($channel, $queueName);

// Setup RemoteEventDispatcher with AmqpHandler
$remoteEventDispatcher = new \WP\RemoteEventDispatcher\EventDispatcher\RemoteEventDispatcher($handler);

$printHalloEvent = new \WP\RemoteEventDispatcher\Model\MutableEvent('printHalloEvent');
$printTestEvent = new \WP\RemoteEventDispatcher\Model\MutableEvent('printTestEvent');

$remoteEventDispatcher->dispatch($printHalloEvent);
$remoteEventDispatcher->dispatch($printTestEvent);
```

Listen for Events
-----------------

[](#listen-for-events)

To Listen for Events you have to configure the RemoteEventListener. The RemoteEventListener requires a Handler and a EventStrategy.

You also can use a EventStrategyRegistry to register different EventStrategies based on the eventName to implement a logic based on Events

```
// Configuration for RabbitMQ or any other queue which is based on AMQP protocol
$queueName = 'remote_event_dispatcher';
$config = [
    'host' => 'localhost',
];
$connection = new \PhpAmqpLib\Connection\AMQPStreamConnection('localhost', 5672, 'guest', 'guest');
$channel = $connection->channel();

// Configure AmqpHandler
$handler = new \WP\RemoteEventDispatcher\Handler\Amqp\AmqpHandler($channel, $queueName);

// Setup your custom EventStrategy
$eventStrategy = new YourCustomEventStrategy();

// Setup RemoteEventListener with AmqpHandler
$remoteEventListener = new \WP\RemoteEventDispatcher\EventListener\RemoteEventListener($handler, $eventStrategy);
$remoteEventListener->listen();
```

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the bundle:

```
Resources/meta/LICENSE

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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/3685645?v=4)[Pascal Wild](/maintainers/wildpascal)[@wildpascal](https://github.com/wildpascal)

---

Top Contributors

[![wildpascal](https://avatars.githubusercontent.com/u/3685645?v=4)](https://github.com/wildpascal "wildpascal (28 commits)")

### Embed Badge

![Health badge](/badges/wildpascal-remote-event-dispatcher/health.svg)

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

###  Alternatives

[slowprog/composer-copy-file

Composer script copying your files after install

481.1M32](/packages/slowprog-composer-copy-file)[torann/hashids

Laravel package for Hashids

54346.2k](/packages/torann-hashids)[insolita/yii2-opcache

Yii2 OpCache module - Show statistic, config, reset all, invalidate files, search in cached files

1569.6k](/packages/insolita-yii2-opcache)

PHPackages © 2026

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