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

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

braincrafted/mq
===============

v0.4.2(11y ago)201173PHP

Since May 29Pushed 11y ago2 watchersCompare

[ Source](https://github.com/braincrafted/mq)[ Packagist](https://packagist.org/packages/braincrafted/mq)[ RSS](/packages/braincrafted-mq/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (6)Versions (8)Used By (0)

BcMq
====

[](#bcmq)

[![Build Status](https://camo.githubusercontent.com/29e2acac5567fd3b0b9cbd622f685cfee52fdae0dc24532f2c6aeb15102441d8/68747470733a2f2f7472617669732d63692e6f72672f627261696e637261667465642f6d712e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/braincrafted/mq)

An asynchronous message queue implemented in PHP (mostly for fun and pleasure).

By [Florian Eckerstorfer](https://florian.ec).

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

[](#installation)

The recommended way of installing BcMq is through [Composer](http://getcomposer.org):

```
{
    "require": {
        "braincrafted/mq": "dev-master"
    }
}
```

Usage
-----

[](#usage)

BcMq requires two distinct scripts, a server and a consumer. The server needs to run as long new messages should be accepted. Whenever a new message arrives the server invokes the consumer in the background and instantley closes the connection.

Messages can be produced using the included producer or by writing a JSON object to the configured port.

There are examples for server, consumer and producer in the `examples` directory.

- [`server.php`](https://github.com/braincrafted/mq/blob/master/examples/server.php)
- [`consumer.php`](https://github.com/braincrafted/mq/blob/master/examples/consumer.php)
- [`producer.php`](https://github.com/braincrafted/mq/blob/master/examples/producer.php)

Changelog
---------

[](#changelog)

### Version 0.4.2 (8 September 2014)

[](#version-042-8-september-2014)

- Updated version string for `react/socket`

### Version 0.4.1 (2014-05-19)

[](#version-041-2014-05-19)

- Fixed namespaces for `BackgroundProcess`

### Version 0.4 (2013-11-15)

[](#version-04-2013-11-15)

- Changed namespace to `Braincrafted`

### Version 0.3 (2013-07-05)

[](#version-03-2013-07-05)

- Server can send callback when handling incoming data

### Version 0.2 (2013-06-04)

[](#version-02-2013-06-04)

- Updated `symfony/dependency-injection` to version 2.3

### Version 0.1

[](#version-01)

- Initial release

License
-------

[](#license)

```
The MIT License (MIT)

Copyright (c) 2013 Florian Eckerstorfer

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Every ~78 days

Recently: every ~107 days

Total

7

Last Release

4260d ago

### Community

Maintainers

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

---

Top Contributors

[![bitdeli-chef](https://avatars.githubusercontent.com/u/3092978?v=4)](https://github.com/bitdeli-chef "bitdeli-chef (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[clue/socks-react

Async SOCKS proxy connector client and server implementation, tunnel any TCP/IP-based protocol through a SOCKS5 or SOCKS4(a) proxy server, built on top of ReactPHP.

1171.1M33](/packages/clue-socks-react)[clue/docker-react

Async, event-driven access to the Docker Engine API, built on top of ReactPHP.

113154.9k1](/packages/clue-docker-react)[react/stomp

STOMP bindings for React.

11492.9k1](/packages/react-stomp)[clue/ami-react

Streaming, event-driven access to the Asterisk Manager Interface (AMI), built on top of ReactPHP.

85110.1k10](/packages/clue-ami-react)[leproxy/leproxy

LeProxy is the HTTP/SOCKS proxy server for everybody!

2212.5k1](/packages/leproxy-leproxy)

PHPackages © 2026

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