PHPackages                             v3knet/queue-module - 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. v3knet/queue-module

ActiveLibrary[Queues &amp; Workers](/categories/queues)

v3knet/queue-module
===================

0.2.0(10y ago)00PHPPHP &gt;=5.5

Since Aug 19Pushed 10y ago1 watchersCompare

[ Source](https://github.com/v3knet/queue-module)[ Packagist](https://packagist.org/packages/v3knet/queue-module)[ RSS](/packages/v3knet-queue-module/feed)WikiDiscussions 0.1 Synced 1mo ago

READMEChangelogDependencies (26)Versions (6)Used By (0)

Queue module [![Build Status](https://camo.githubusercontent.com/7ce6323c5eb3db9737c3cda3a19942294d616211a2ca30e4330a9a6301dbcb51/68747470733a2f2f7472617669732d63692e6f72672f76336b6e65742f71756575652d6d6f64756c652e737667)](https://travis-ci.org/v3knet/queue-module)
=========================================================================================================================================================================================================================================================================

[](#queue-module-)

With this module, we can put the message to queue, process the message using consumer.

1. Let the module know your queue
---------------------------------

[](#1-let-the-module-know-your-queue)

```
use atsilex\module\Module;
use atsilex\module\system\events\AppEvent;
use Pimple\Container;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Bernard\Message\DefaultMessage;

class MyModule extends Module {
    public function subscribe(Container $container, EventDispatcherInterface $dispatcher) {
        $dispatcher->addListener('queue.queues.get', function (AppEvent $event) {
            $queues = $event->getSubject();
            $queues['my_module.demo_queue'] = DefaultMessage::class;
        });
    }
}
```

Then your queue is listed on:

```
php public/index.php v3k:queue:list

```

2. Produce message
------------------

[](#2-produce-message)

```
use atsilex\module\system\ModularAp;
use Bernard\Message\DefaultMessage;

$msg = new DefaultMessage('my_module.demo_queue, ['foo' => 'bar']);
$app['bernard.producer']->produce($msg);
```

3. Process the message
----------------------

[](#3-process-the-message)

We need to teach consumer how to route our message:

```
use atsilex\module\Module;
use atsilex\module\system\events\AppEvent;
use Bernard\Router\SimpleRouter;
use Bernard\Message\DefaultMessage;
use Pimple\Container;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

class MyModule extends Module {
    public function subscribe(Container $container, EventDispatcherInterface $dispatcher) {
        // …
        $dispatcher->addListener('queue.router.create', function (AppEvent $event) {
            $router = $event->getSubject();
            $router->add('my_module.demo_queue', function (ImportMessage $m) use ($c) {
                // Logic to process the message
            });
        });
    }
}
```

The message can now be routed correctly, now to process the message, just call the consume command:

```
php public/index.php v3k:queue:process my_module.demo_queue

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.2% 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

Every ~8 days

Total

6

Last Release

3886d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7dec27604d3084152d8f60b6e42356591006052ec44da672b9539f107011d271?d=identicon)[andytruong](/maintainers/andytruong)

---

Top Contributors

[![and1truong](https://avatars.githubusercontent.com/u/41143?v=4)](https://github.com/and1truong "and1truong (16 commits)")[![andytruong](https://avatars.githubusercontent.com/u/181753561?v=4)](https://github.com/andytruong "andytruong (5 commits)")

### Embed Badge

![Health badge](/badges/v3knet-queue-module/health.svg)

```
[![Health](https://phpackages.com/badges/v3knet-queue-module/health.svg)](https://phpackages.com/packages/v3knet-queue-module)
```

###  Alternatives

[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)

PHPackages © 2026

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