This package is abandoned and no longer maintained. No replacement package was suggested.

A queue module for Laminas.

2.0.0 2020-11-28 15:43 UTC

This package is auto-updated.

Last update: 2022-12-28 20:28:27 UTC


Latest Stable Version Total Downloads Latest Unstable Version License Build Status Coverage Status

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


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.


Ready integrations

Create their own integration



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
        return true;

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


Run queue



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