richardfullmer/rabbitmq-management-api
An object oriented wrapper for the RabbitMQ Management HTTP Api
Maintainers
Package info
github.com/richardfullmer/php-rabbitmq-management-api
pkg:composer/richardfullmer/rabbitmq-management-api
Requires
- php: >=5.4
- php-http/client-common: ^1.0
- php-http/client-implementation: ^1.0
- php-http/discovery: ^1.0
- php-http/httplug: ^1.0
- php-http/message-factory: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 8a17fd1eebf21f47b5b13cf572e3604cf95617a2
- Richard Fullmer <richardfullmer.woop@gmail.com>
This package is auto-updated.
Last update: 2026-06-29 01:04:55 UTC
README
A simple object oriented wrapper for the RabbitMQ Management HTTP Api in PHP 5.3
Uses PHP-HTTP for requests.
Installation
Installable through composer via:
$ composer require richardfullmer/rabbitmq-management-api
Additionally, you require a httplug compatible client.
For example, use the guzzle6 adapter:
$ composer require php-http/guzzle6-adapter
Basic Usage
<?php use RabbitMq\ManagementApi\Client; require_once __DIR__ . '/../vendor/autoload.php'; $client = new Client(); $queue = $client->queues()->get('/', 'sample-messages-queue'); $response = $client->exchanges()->publish('/', 'sample-messages', array( 'properties' => array(), 'routing_key' => '', 'payload' => 'This is a test', 'payload_encoding' => 'string' )); if ($response['routed']) { print 'Message delivered'; }
License
php-rabbitmq-management-api is licensed under the MIT License - see the LICENSE file for details
Credits
Structure from KnpLabs php-github-api
Rabbit's Excellent Message Queue
