PHPackages                             sebk/small-events-swoft - 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. sebk/small-events-swoft

ActiveLibrary

sebk/small-events-swoft
=======================

Swoft cross applications events dispatcher and receiver

1.0(4y ago)04GPL-3.0-onlyPHP

Since Nov 2Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sebk69/small-events-swoft)[ Packagist](https://packagist.org/packages/sebk/small-events-swoft)[ RSS](/packages/sebk-small-events-swoft/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

sebk/small-events-swoft
=======================

[](#sebksmall-events-swoft)

Swoft cross applications events dispatcher and receiver

Install
-------

[](#install)

Create your Swoft project :

Require package () :

```
composer require sebk/small-events-swoft

```

Documentation
-------------

[](#documentation)

### Supported connectors

[](#supported-connectors)

For now, only RabbitMq is supported.

In future, Apache Kafka and MySql connectors are planned.

### Configuration

[](#configuration)

Add contract to choose your massage brocker to your 'bean.php' :

```
return [
    ...
    // Small events contracts
    \Sebk\SmallEventsSwoft\Contract\SmallMessageBrokerInterface::class => [
        'class' => \Sebk\SmallEventsSwoft\RabbitMqAdapter\RabbitMqMessageBroker::class,
    ],
    ...
];

```

Here RabbitMq message broker will be used.

Create a 'small\_events.php' file in your config dir :

```
