PHPackages                             desarrolla2/async-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. desarrolla2/async-event-dispatcher-bundle

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

desarrolla2/async-event-dispatcher-bundle
=========================================

0.0.1(6y ago)022.5k↓33.3%MITPHP

Since Sep 27Pushed 4y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

AsyncEventDispatcher
====================

[](#asynceventdispatcher)

The `AsyncEventDispatcherBundle` means an asynchronous message management easy to implement in Symfony!

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

[](#installation)

### Download the Bundle

[](#download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require desarrolla2/async-event-dispatcher-bundle
```

This command requires you to have Composer installed globally, as explained in the `installation chapter` of the Composer documentation.

### Enable the Bundle

[](#enable-the-bundle)

Then, enable the bundle by adding the following line in the `app/AppKernel.php`file of your project:

```
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...

            new Desarrolla2\AsyncEventDispatcherBundle\AsyncEventDispatcherBundle(),
        );

        // ...
    }

    // ...
}
```

### Config the Bundle

[](#config-the-bundle)

You need put something like this in your config.yml

```
async_event_dispatcher:
  num_messages_per_execution: 1
  maximum_num_of_consumers: 4
```

Create your first message asynchronous
--------------------------------------

[](#create-your-first-message-asynchronous)

A controller that creates an example message would look like this:

```
