PHPackages                             tomcizek/symfony-prooph-asynchronous-router - 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. [API Development](/categories/api)
4. /
5. tomcizek/symfony-prooph-asynchronous-router

ActiveSymfony-bundle[API Development](/categories/api)

tomcizek/symfony-prooph-asynchronous-router
===========================================

0.01-alpha(8y ago)0294BSD-3-ClausePHPPHP ^7.1

Since Jan 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/tomcizek/symfony-prooph-asynchronous-router)[ Packagist](https://packagist.org/packages/tomcizek/symfony-prooph-asynchronous-router)[ Docs](http://www.tomascizek.com)[ RSS](/packages/tomcizek-symfony-prooph-asynchronous-router/feed)WikiDiscussions master Synced 2mo ago

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

tomcizek/symfony-prooph-asynchronous-router
===========================================

[](#tomcizeksymfony-prooph-asynchronous-router)

[![Build Status](https://camo.githubusercontent.com/e711304663f5d2c2d872a86fe7363fa18c032267bd579e94dfe02cf5de0f3152/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f746f6d63697a656b2f73796d666f6e792d70726f6f70682d6173796e6368726f6e6f75732d726f757465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/tomcizek/symfony-prooph-asynchronous-router)[![Quality Score](https://camo.githubusercontent.com/a25074417be46c89506e730d08d557ce7f273d71a54701e27785f70bfebff55a/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f746f6d63697a656b2f73796d666f6e792d70726f6f70682d6173796e6368726f6e6f75732d726f757465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tomcizek/symfony-prooph-asynchronous-router)[![Code Coverage](https://camo.githubusercontent.com/41b544c2c0061ce8ddf1ad86d39414c53280ac0a2c97472204dfeb0bca900b8e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f746f6d63697a656b2f73796d666f6e792d70726f6f70682d6173796e6368726f6e6f75732d726f757465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/tomcizek/symfony-prooph-asynchronous-router)

Symfony Bundle for easy routing of asynchronous messages.

Why bother?
-----------

[](#why-bother)

It allows you to

1. Automatically create MessageProducer services.
2. Define routes for each service in yaml or xml config.
3. Define AsynchronousMessageProducerBridge for each service, which you can implement using any infrastructure.

Quick start
===========

[](#quick-start)

### 1) Install this library through composer

[](#1-install-this-library-through-composer)

`composer require tomcizek/symfony-prooph-asynchronous-router`

### 2) Register these Bundles in your kernel (individual, but might be config/bundles.php)

[](#2-register-these-bundles-in-your-kernel-individual-but-might-be-configbundlesphp)

```
return [
    Prooph\Bundle\ServiceBus\ProophServiceBusBundle::class => ['all' => true],
    TomCizek\AsynchronousRouter\ProophAsynchronousRouterBundle::class => ['all' => true],
];
```

### 3) Implement your own TomCizek\\AsynchronousRouter\\AsynchronousMessageProducerBridge

[](#3-implement-your-own-tomcizekasynchronousrouterasynchronousmessageproducerbridge)

Simplest working example implementation for RabbitMq [php-amqplib ](https://github.com/php-amqplib/RabbitMqBundle) infrastructure might look like:

```
