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

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

t4web/queue
===========

ZF2 Module. Message broker software implementation

0.1.0(10y ago)015BSD-3-ClausePHPPHP ^5.5 || ^7.0

Since Jun 22Pushed 9y ago3 watchersCompare

[ Source](https://github.com/t4web/Queue)[ Packagist](https://packagist.org/packages/t4web/queue)[ Docs](https://github.com/t4web/Queue)[ RSS](/packages/t4web-queue/feed)WikiDiscussions master Synced 3w ago

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

Queue
=====

[](#queue)

ZF2 Module. Message broker software implementation

### Introduction

[](#introduction)

Contain parts:

- `Server` - get messages from queue and run workers, monitor running workers count
- `Producer` - produces messages and sends them to the queue
- `Worker` - you background job
- `Storage` - messages storage

### Workflow

[](#workflow)

- Client tell `Producer` what it want to process
- `Producer` create message and put it in `Storage` and get Message Id. After this push Server to process message by Id
- `Server` check Workers count (if too much workers are running, wait) and run `Worker` with Message Id.
- `Worker` - get message from storage and process it.

```
                               Server
                    message  /        \  run worker
Client -> Producer --------->          -------------> Worker
                             \                          /
                               Storage             --->-

```

In the box we provide 2 Servers:

1. Realtime server - uses ReactPHP to run a non-blocking server that accepts messages via a socket and executes them in a background process.
2. Interval server - check storage for Messages by interval (run by cronjob)

### Configuring

[](#configuring)

Just add in you config:

```
't4web-queue' => [

     'realtime-server' => [
         'enabled' => true,
         'hostname' => 'localhost',
         'port' => 4000,
     ],

     'queues' => [

         // Queue name
         'test-engine' => [

             // Handler class
             'handler' => EchoWorker::class,

             // count workers, optional, default 1
             'worker-count' => 1,

             // You can limit the amount of time a process takes to complete by setting a timeout (in seconds)
             // optional, default 300
             'timeout' => 300,

             // optional, default 0
             'debug-enable' => 1,
         ],
     ],
 ];
```

### Runing

[](#runing)

```
$ php public/index.php queue realtime-server
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

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

3659d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/208688?v=4)[max](/maintainers/maxgu)[@maxgu](https://github.com/maxgu)

---

Top Contributors

[![maxgu](https://avatars.githubusercontent.com/u/208688?v=4)](https://github.com/maxgu "maxgu (17 commits)")[![sebaks](https://avatars.githubusercontent.com/u/9897880?v=4)](https://github.com/sebaks "sebaks (1 commits)")

---

Tags

queuemodulezf2zf2 module

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136400.8k14](/packages/rector-rector-src)[prolic/humus-amqp-module

AMQP module for Zend Framework 2 to integrate RabbitMQ

3057.0k1](/packages/prolic-humus-amqp-module)

PHPackages © 2026

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