PHPackages                             adspray/rabbitmq-management-client - 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. adspray/rabbitmq-management-client

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

adspray/rabbitmq-management-client
==================================

RabbitMQ Management Plugin API Client

0.2.2(6y ago)05MITPHP

Since Nov 23Pushed 6y agoCompare

[ Source](https://github.com/AdSpray/RabbitMQ-Management-API-Client)[ Packagist](https://packagist.org/packages/adspray/rabbitmq-management-client)[ RSS](/packages/adspray-rabbitmq-management-client/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (8)Versions (6)Used By (0)

RabbitMQ Manager API Client
===========================

[](#rabbitmq-manager-api-client)

[![Build Status](https://camo.githubusercontent.com/f9a973cf185aeb8c3138b41a58da8fa5b980149c00bcdc53d86a10adf9ae49fa/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f616c6368656d792d66722f5261626269744d512d4d616e6167656d656e742d4150492d436c69656e742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/alchemy-fr/RabbitMQ-Management-API-Client)

This library is intended to help management of RabbitMQ server in an application. It provides two ways to query RabbitMQ : Synchronous query with Guzzle and Asynchronous query with React.

Asynchronous Queries
--------------------

[](#asynchronous-queries)

```
use RabbitMQ\Management\AsyncAPIClient;
use React\EventLoop\Factory;

$loop = Factory::create();

$client = AsyncAPIClient::factory($loop, array(
    'url'      => '127.0.0.1',
));

$loop->addPeriodicTimer(1, function () use ($client) {
    $client->listQueues()
        ->then(function($queues) {
            echo "\n------------\n";
            foreach ($queues as $queue) {
                echo sprintf("Found queue %s with %d messages\n", $queue->name, $queue->messages);
            }
        }, function ($error) {
            echo "An error occured : $error\n";
        });
});

$loop->run();
```

Asynchronous Client do not currently support Guarantee API.

Synchronous Queries
-------------------

[](#synchronous-queries)

Ensure a queue has a flag :

```
use RabbitMQ\Management\APIClient;
use RabbitMQ\Management\Entity\Queue;
use RabbitMQ\Management\Exception\EntityNotFoundException;

$client = APIClient::factory(array('url'=>'localhost'));

try {
    $queue = $client->getQueue('/', 'queue.leuleu');

    if (true !== $queue->durable) {
        $queue->durable = true;

        $client->deleteQueue('/', 'queue.leuleu');
        $client->addQueue($queue);
    }

} catch (EntityNotFoundException $e) {
    $queue = new Queue();
    $queue->vhost = '/';
    $queue->name = 'queue.leuleu';
    $queue->durable = true;

    $client->addQueue($queue);
}
```

You can also use the Guarantee manager :

```
use RabbitMQ\Management\APIClient;
use RabbitMQ\Management\Entity\Queue;
use RabbitMQ\Management\Guarantee;

$client = APIClient::factory(array('url'=>'localhost'));
$manager = new Guarantee($client);

$queue = new Queue();
$queue->vhost = '/';
$queue->name = 'queue.leuleu';
$queue->durable = true;
$queue->auto_delete = false;

$queue = $manager->ensureQueue($queue);
```

API Browser
===========

[](#api-browser)

Browse the API [here](https://rabbitmq-management-api-client.readthedocs.org/en/latest/_static/API/).

Documentation
=============

[](#documentation)

Read the documentation at [Read The Docs](https://rabbitmq-management-api-client.readthedocs.org) !

License
=======

[](#license)

This library is released under the MIT license (use it baby !)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.3% 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 ~713 days

Total

4

Last Release

2357d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a29c24968137fa3c8608f162ec1ad82209a26fc1a9b6304971d2bc0ce80541f?d=identicon)[Streamwise](/maintainers/Streamwise)

---

Top Contributors

[![romainneutron](https://avatars.githubusercontent.com/u/137574?v=4)](https://github.com/romainneutron "romainneutron (57 commits)")[![robsen77](https://avatars.githubusercontent.com/u/1155243?v=4)](https://github.com/robsen77 "robsen77 (10 commits)")[![fabre-thibaud](https://avatars.githubusercontent.com/u/5682430?v=4)](https://github.com/fabre-thibaud "fabre-thibaud (3 commits)")[![nlegoff](https://avatars.githubusercontent.com/u/511494?v=4)](https://github.com/nlegoff "nlegoff (2 commits)")[![aztech-dev](https://avatars.githubusercontent.com/u/93562568?v=4)](https://github.com/aztech-dev "aztech-dev (2 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (2 commits)")[![Niktux](https://avatars.githubusercontent.com/u/615193?v=4)](https://github.com/Niktux "Niktux (2 commits)")[![lauradab19](https://avatars.githubusercontent.com/u/58214944?v=4)](https://github.com/lauradab19 "lauradab19 (1 commits)")[![bburnichon](https://avatars.githubusercontent.com/u/2437286?v=4)](https://github.com/bburnichon "bburnichon (1 commits)")

---

Tags

apirabbitmqmanagement

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/adspray-rabbitmq-management-client/health.svg)

```
[![Health](https://phpackages.com/badges/adspray-rabbitmq-management-client/health.svg)](https://phpackages.com/packages/adspray-rabbitmq-management-client)
```

###  Alternatives

[alchemy/rabbitmq-management-client

RabbitMQ Management Plugin API Client

4242.6k](/packages/alchemy-rabbitmq-management-client)[php-amqplib/thumper

AMQP Tools

276210.8k7](/packages/php-amqplib-thumper)[vinelab/bowler

A Rabbitmq wrapper for Laravel

4659.7k1](/packages/vinelab-bowler)

PHPackages © 2026

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