PHPackages                             dubture/async-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. dubture/async-bundle

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

dubture/async-bundle
====================

Provides an easy to use abstraction for async backend workers in Symfony2

0.0.1(11y ago)324MITPHP

Since Apr 18Pushed 11y ago3 watchersCompare

[ Source](https://github.com/pulse00/async-bundle)[ Packagist](https://packagist.org/packages/dubture/async-bundle)[ RSS](/packages/dubture-async-bundle/feed)WikiDiscussions master Synced 1w ago

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

Async Bundle
============

[](#async-bundle)

[![Build Status](https://camo.githubusercontent.com/0148e94e2c78a7247337c1ee68ab4af90e0c8727531dcbc5d246b71b53802baf/68747470733a2f2f7472617669732d63692e6f72672f70756c736530302f6173796e632d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pulse00/async-bundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/55ecc4a11994088492f6274bc669c9b6400559d2a55370003391d60690caab0f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70756c736530302f6173796e632d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pulse00/async-bundle/?branch=master)

This Symfony bundle provides a high-level way of sending expensive logic to background workers.

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

[](#configuration)

1. Install the bundle using `composer require "dubture/async-bundle"`
2. Add the necessary bundles to your Kernel:

```
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(

        // register the async bundle
        new Dubture\AsyncBundle\DubtureAsyncBundle(),

        // register the dependencies of the async bundle
        new JMS\DiExtraBundle\JMSDiExtraBundle($this),
        new JMS\AopBundle\JMSAopBundle(),

        // your application bundles here...

    );

    return $bundles;
}
```

3. Configure which backend to use:

```
# app/config/config.yml
dubture_async:
  backend: rabbitmq # one of rabbitmq|resque|sonata|runtime
```

Usage
-----

[](#usage)

Consider the following service:

```

```

```
class MediaTranscodingService
{
    public function transcodeFile($sourcePath)
    {
            // ... do some heavy-lifting, e.g. media transcoding
    }
}
```

If you want to delegate this method to a background worker, this is all you need to do:

```
use Dubture\AsyncBundle\Annotation\Async;

class MediaTranscodingService
{
    /**
     * @Async
     */
    public function transcodeFile($sourcePath)
    {
            // ... do some heavy-lifting, e.g. media transcoding
    }
}
```

Now any call to `transcodeFile` will be intercepted and delegated to a background worker.

Methods annotated with `@Async` need to adhere to the following contract:

1. The class declaring the async method must be a service
2. The methods arguments must be serializable (no resources, e.g. doctrine connections)
3. The method should not return anything (any return value will be lost)

If you need to react to something happening inside your background worker, you can simply dispatch events when it's done.

The background-worker implementation relies on one of the following bundles:

-  (resque)
-  (rabbitmq)
-  (see sonata bundle for available backends)

See `Resources/docs` for documentation of the specific backends.

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4070d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/410d88b323657243a2319b2254705cf2e0bf8f19c1bdebfc54c8b198aedade91?d=identicon)[pulse00](/maintainers/pulse00)

---

Top Contributors

[![pulse00](https://avatars.githubusercontent.com/u/185278?v=4)](https://github.com/pulse00 "pulse00 (23 commits)")

---

Tags

asyncsymfonyrabbitmqbackgroundresque

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dubture-async-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/dubture-async-bundle/health.svg)](https://phpackages.com/packages/dubture-async-bundle)
```

###  Alternatives

[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

309914.0k25](/packages/dereuromark-cakephp-queue)[rcrowe/raven

Raven client for Sentry that supports background processing through multiple providers.

3467.0k](/packages/rcrowe-raven)[krlove/async-service-call-bundle

Symfony bundle for asynchronous service methods calls

1153.7k](/packages/krlove-async-service-call-bundle)

PHPackages © 2026

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