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

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

qwep-ru/rabbitmq-management-client
==================================

Fork of scroller123/rabbitmq-management-client

0.2.0(11y ago)05MITPHP

Since Nov 23Pushed 7y agoCompare

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

READMEChangelogDependencies (8)Versions (4)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

Community12

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77% 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 ~310 days

Total

2

Last Release

4190d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/135c6bb08e4e93a8e586c020ed46b017b1e8037d1782d6d33307cc6b93d98730?d=identicon)[qwep-ru](/maintainers/qwep-ru)

---

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)")[![nlegoff](https://avatars.githubusercontent.com/u/511494?v=4)](https://github.com/nlegoff "nlegoff (2 commits)")[![cordoval](https://avatars.githubusercontent.com/u/328359?v=4)](https://github.com/cordoval "cordoval (2 commits)")[![aztech-dev](https://avatars.githubusercontent.com/u/93562568?v=4)](https://github.com/aztech-dev "aztech-dev (1 commits)")[![bburnichon](https://avatars.githubusercontent.com/u/2437286?v=4)](https://github.com/bburnichon "bburnichon (1 commits)")[![StanleyMace](https://avatars.githubusercontent.com/u/15671765?v=4)](https://github.com/StanleyMace "StanleyMace (1 commits)")

---

Tags

apirabbitmqmanagement

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/qwep-ru-rabbitmq-management-client/health.svg)](https://phpackages.com/packages/qwep-ru-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.8k8](/packages/php-amqplib-thumper)[vinelab/bowler

A Rabbitmq wrapper for Laravel

4659.7k1](/packages/vinelab-bowler)[videlalvaro/thumper

AMQP Tools

27783.1k3](/packages/videlalvaro-thumper)

PHPackages © 2026

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