PHPackages                             bupy7/zf-queue - 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. bupy7/zf-queue

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

bupy7/zf-queue
==============

A queue module for Laminas.

2.0.0(5y ago)0473BSD-3-ClausePHPPHP ^7.1

Since Sep 7Pushed 5y ago1 watchersCompare

[ Source](https://github.com/bupy7/zf-queue)[ Packagist](https://packagist.org/packages/bupy7/zf-queue)[ RSS](/packages/bupy7-zf-queue/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (8)Versions (8)Used By (0)

zf-queue
========

[](#zf-queue)

[![Latest Stable Version](https://camo.githubusercontent.com/46c240b28ad3e41bbe143057466f4dc649ac0c3b321cb0560bf5e4b8d988a110/68747470733a2f2f706f7365722e707567782e6f72672f62757079372f7a662d71756575652f762f737461626c65)](https://packagist.org/packages/bupy7/zf-queue)[![Total Downloads](https://camo.githubusercontent.com/8099f0c8522efab3713f6acb198f03518a7d13ae867760aed4fff9171101be68/68747470733a2f2f706f7365722e707567782e6f72672f62757079372f7a662d71756575652f646f776e6c6f616473)](https://packagist.org/packages/bupy7/zf-queue)[![Latest Unstable Version](https://camo.githubusercontent.com/73868ba7c8032eaba1a2efcfec3f680b42baa1940939e8bc81ffba7c1d25630f/68747470733a2f2f706f7365722e707567782e6f72672f62757079372f7a662d71756575652f762f756e737461626c65)](https://packagist.org/packages/bupy7/zf-queue)[![License](https://camo.githubusercontent.com/522cb7318775c646385d813b27f2ef4efa2946123d0ce43c6ba019617871ae80/68747470733a2f2f706f7365722e707567782e6f72672f62757079372f7a662d71756575652f6c6963656e7365)](https://packagist.org/packages/bupy7/zf-queue)[![Build Status](https://camo.githubusercontent.com/55c7420931ec4c7980d93e536a16d82f8461f20b956447e720a7caa3e66bc134/68747470733a2f2f7472617669732d63692e6f72672f62757079372f7a662d71756575652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bupy7/zf-queue)[![Coverage Status](https://camo.githubusercontent.com/45593c0b94d174b5b0fb76d6d0c6a89caa884858b36e93ae878edb286d2d0c79/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f62757079372f7a662d71756575652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/bupy7/zf-queue?branch=master)

Abstract queue module for Laminas. Module contains **only** abstract layers to create their own integrations using this module.

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

[](#installation)

The preferred way to install this extension is through composer.

Either run

```
$ php composer.phar require bupy7/zf-queue "*"

```

or add

```
"bupy7/zf-queue": "*"

```

to the require section of your composer.json file.

Integration
-----------

[](#integration)

### Ready integrations

[](#ready-integrations)

- [Doctrine 2 ORM](example/QueueDoctrine)

### Create their own integration

[](#create-their-own-integration)

TODO

Usage
-----

[](#usage)

### Create task

[](#create-task)

**Let's create our first an example task for queue:**

```
// YourModule/src/task/ExampleTask.php

namespace YourModule\Task;

use Bupy7\Queue\Task\TaskInterface;
use Laminas\Stdlib\ParametersInterface;
use Chat\Service\ChatService;

class SendAccountTask implements TaskInterface
{
    /**
     * @var ChatService
     */
    protected $chatService;

    public function __construct(ChatService $chatService) {
        $this->chatService = $chatService;
    }

    /**
     * @param ParametersInterface $params
     * - message (string)
     * @return bool
     */
    public function execute(ParametersInterface $params): bool
    {
        $this->chatService->send($params->get('message'));
        return true;
    }
}
```

### Run task

[](#run-task)

**After you need to register task to queue manager**:

```
// YouModule/config/queue.config.php

namespace YourModule;

return [
    'queue_manager' => [
        'factories' => [
            Task\ExampleTask::class => \Laminas\ServiceManager\AbstractFactory\ReflectionBasedAbstractFactory::class,
        ],
    ],
];
```

**Now, add `queue.config.php` to your config list:**

```
// YourModule/src/YourModule.php

class Module
{
    public function getConfig(): array
    {
        return array_merge(

            // another config files

            require __DIR__ . '/../config/queue.config.php'
        );
    }
}
```

**Add the task to queue**

```
$container->get('Bupy7\Queue\Service\QueueService')->add('YourModule\Task\ExampleTask');
```

**Run queue**

```
$container->get('Bupy7\Queue\Service\QueueService')->run();
```

License
-------

[](#license)

zf-queue is released under the BSD 3-Clause License.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Every ~196 days

Recently: every ~293 days

Total

7

Last Release

2039d ago

Major Versions

1.0.3 → 2.0.02020-11-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2f9ee20b742a44db8870955cd27b91bb82c14e08dd61a4e096692c9d9d83302?d=identicon)[bupy7](/maintainers/bupy7)

---

Top Contributors

[![bupy7](https://avatars.githubusercontent.com/u/5145037?v=4)](https://github.com/bupy7 "bupy7 (40 commits)")

---

Tags

asynclaminaszendqueuemanagerzftaskzf3

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/bupy7-zf-queue/health.svg)

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

###  Alternatives

[magento/community-edition

Magento 2 (Open Source)

12.1k53.0k12](/packages/magento-community-edition)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[dereuromark/cakephp-queue

The Queue plugin for CakePHP provides deferred task execution.

308914.0k25](/packages/dereuromark-cakephp-queue)[clue/mq-react

Mini Queue, the lightweight in-memory message queue to concurrently do many (but not too many) things at once, built on top of ReactPHP

144766.9k4](/packages/clue-mq-react)[facile-it/sentry-module

This module allows integration of Sentry Client into laminas and mezzio

19393.4k](/packages/facile-it-sentry-module)[orisai/scheduler

Cron job scheduler - with locks, parallelism and more

4041.4k5](/packages/orisai-scheduler)

PHPackages © 2026

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