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

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

romeoz/rock-mq
==============

Unified API for message queue services

0.10.0(10y ago)2151MITPHPPHP &gt;=5.4.0

Since Jun 12Pushed 10y ago2 watchersCompare

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

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

A message queue API for PHP
===========================

[](#a-message-queue-api-for-php)

[![Latest Stable Version](https://camo.githubusercontent.com/bdf771d3455b81249ccac0b2feca601e0318288ee07dc744e1ada6bd26060001/68747470733a2f2f706f7365722e707567782e6f72672f726f6d654f7a2f726f636b2d6d712f762f737461626c652e737667)](https://packagist.org/packages/romeOz/rock-mq)[![Total Downloads](https://camo.githubusercontent.com/b8373f5c99423876ce85a34223cebe5c363b246616daa010f6c791b27fb9f214/68747470733a2f2f706f7365722e707567782e6f72672f726f6d654f7a2f726f636b2d6d712f646f776e6c6f6164732e737667)](https://packagist.org/packages/romeOz/rock-mq)[![Build Status](https://camo.githubusercontent.com/f4c580c8262711265304dc4edaa5a34fd3f4111dee74dde79bad8cef8d671247/68747470733a2f2f7472617669732d63692e6f72672f726f6d654f7a2f726f636b2d6d712e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/romeOz/rock-mq)[![Coverage Status](https://camo.githubusercontent.com/906dea8462bec071f8a5fa57c1af6873cf686abd08dbf87e5ff11dab7f09c7fd/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f726f6d654f7a2f726f636b2d6d712f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/romeOz/rock-mq?branch=master)[![License](https://camo.githubusercontent.com/f53a69c41f90e40b76553af383b8b93cc7738b08ce5bde700832ef1e7527a6c1/68747470733a2f2f706f7365722e707567782e6f72672f726f6d654f7a2f726f636b2d6d712f6c6963656e73652e737667)](https://packagist.org/packages/romeOz/rock-mq)

[Rock MQ on Packagist](https://packagist.org/packages/romeOz/rock-mq)

Features
--------

[](#features)

- Background sending
- Pub/Sub
- Non-blocking
- Module for [Rock Framework](https://github.com/romeOz/rock)

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

[](#installation)

From the Command Line:

`composer require romeoz/rock-mq:*@dev`

In your composer.json:

```
{
    "require": {
        "romeoz/rock-mq": "*@dev"
    }
}
```

Quick Start
-----------

[](#quick-start)

Run broker:

```
php tests/data/mq/rabbit/simple_server.php &

```

Code:

```
use rock\mq\RabbitQueue;

$rabbit = new RabbitQueue();
$rabbit->send('test'); // result: "Hi! I am server: test"

// or background

$rabbit->sendBackground('test');
```

\####Pub/Sub

Run broker:

```
php tests/data/mq/rabbit/pub_server.php &

```

Code:

```
use rock\mq\RabbitQueue;

$rabbit = new RabbitQueue();
$rabbit->blocking = false;
$rabbit->type = 'direct';
$rabbit->exchange = 'direct_test';

$rabbit->subscribe('foo'); // result: "Hi! I am server: foo"
```

Requirements
------------

[](#requirements)

- **PHP 5.4+**
- [Gearman](http://gearman.org/) should be installed `apt-get install  libgearman7`. Also, should be installed [PHP extension](http://pecl.php.net/package/gearman) `apt-get install php5-gearman`
- [RabbitMQ](http://www.rabbitmq.com/) should be installed `apt-get install rabbitmq-server`.
- [ZeroMQ](http://zeromq.org/) should be installed `apt-get install libzmq3`. Also, should be installed [PHP extension](http://pecl.php.net/package/zmq) `apt-get install php-zmq`

> Note: if you have problems with the installation, then see config [.travis](https://github.com/romeOz/rock/tree/master/tests/data/travis).

License
-------

[](#license)

A message queue API is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

3992d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23c5d84a59845d751cb69f5469986579b9312c54c898b366fefdc05baaa80a9c?d=identicon)[romeOz](/maintainers/romeOz)

---

Top Contributors

[![romeOz](https://avatars.githubusercontent.com/u/3135712?v=4)](https://github.com/romeOz "romeOz (20 commits)")

---

Tags

rabbitmqMQmessage queuegearmanzeromq

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

48030.5M87](/packages/queue-interop-queue-interop)[bschmitt/laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages

2752.3M7](/packages/bschmitt-laravel-amqp)[mikemadisonweb/yii2-rabbitmq

Wrapper based on php-amqplib to incorporate messaging in your Yii2 application via RabbitMQ. Inspired by RabbitMqBundle for Symfony 2, really awesome package.

74262.1k1](/packages/mikemadisonweb-yii2-rabbitmq)[iamfarhad/laravel-rabbitmq

A robust RabbitMQ driver for Laravel Queue with advanced message queuing, reliable delivery, and high-performance async processing capabilities

3215.6k](/packages/iamfarhad-laravel-rabbitmq)

PHPackages © 2026

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