PHPackages                             php-mq/server - 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. php-mq/server

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

php-mq/server
=============

PHP message queue server

751PHP

Since Jan 1Pushed 8y ago2 watchersCompare

[ Source](https://github.com/php-mq/server)[ Packagist](https://packagist.org/packages/php-mq/server)[ RSS](/packages/php-mq-server/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/200bcafe682e13c132bf0a65b105bbf342e6b487ac60bd8e2f080092efb16cca/68747470733a2f2f7472617669732d63692e6f72672f7068702d6d712f7365727665722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/php-mq/server)[![Latest Stable Version](https://camo.githubusercontent.com/c2a82bb3d1cce7d4947464600343566be48862cb55c283f4f03bbb6eb5c16732/68747470733a2f2f706f7365722e707567782e6f72672f7068702d6d712f7365727665722f762f737461626c65)](https://packagist.org/packages/php-mq/server)[![Total Downloads](https://camo.githubusercontent.com/6a0e6505d82c082691c7ebef649a0156464bb290d1acb0bd6e39590099b1206a/68747470733a2f2f706f7365722e707567782e6f72672f7068702d6d712f7365727665722f646f776e6c6f616473)](https://packagist.org/packages/php-mq/server)[![Coverage Status](https://camo.githubusercontent.com/4808555afb2a2ab6ce293f421d051e4bf6e7cbbd5dcf076698f2fdb9b8ac3c34/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7068702d6d712f7365727665722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/php-mq/server?branch=master)

PHPMQ\\MessageQueueServer
=========================

[](#phpmqmessagequeueserver)

A lightweight PHP message queue

At the moment this is a proof-of-concept implementation.

Description
-----------

[](#description)

This implementation aims to implement the following requirements.

For details of the client-endpoint-communication see the message [protocol documentation](https://github.com/php-mq/protocol/blob/master/README.md).

### Message endpoint

[](#message-endpoint)

- Establish a communication endpoint via network or unix domain socket. (both should be possible)
- Accept connections to that endpoint and constantly receive messages from clients

### Message senders

[](#message-senders)

- Can connect/disconnect to/from the message endpoint
- Can request a named queue
- Can send arbitrary amount of messages to the queue

### Message queues

[](#message-queues)

- Create named queues as they are requested by the sender
- Flush queues on demand
- Releases acknowledged messages
- Give status feedback on existing queues
- First in - First out

### Message persistence

[](#message-persistence)

- Persist incoming messages to an SQLite3 memory storage
- Mirror the SQLite3 memory storage to a SQLite3 file storage to keep messages beyond a reboot
- Mirror to file storage in background to keep persistence fast

### Message consumers

[](#message-consumers)

- Can connect/disconnect to/from the message endpoint
- Can consume a variable amount of messages from one or multiple named queues
- Must acknowledge the consumed message to release it from the queue

### Message distribution

[](#message-distribution)

- Distribute messages equally to all connected consumers
- Reallocates distribution on dis-/connect of consumers
- Dispatches a message to other consumer, if message was dispatched but not acknowledged and the respective consumer disconnected

Contributing
------------

[](#contributing)

Contributions are welcome and will be fully credited. Please see the [contribution guide](.github/CONTRIBUTING.md) for details.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1557839?v=4)[Holger Woltersdorf](/maintainers/hollodotme)[@hollodotme](https://github.com/hollodotme)

---

Top Contributors

[![hollodotme](https://avatars.githubusercontent.com/u/1557839?v=4)](https://github.com/hollodotme "hollodotme (239 commits)")

---

Tags

asyncmessage-queuephp7serversocket

### Embed Badge

![Health badge](/badges/php-mq-server/health.svg)

```
[![Health](https://phpackages.com/badges/php-mq-server/health.svg)](https://phpackages.com/packages/php-mq-server)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M171](/packages/react-async)

PHPackages © 2026

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