richardfullmer/rabbitmq-management-api
最新稳定版本:2.1.0
Composer 安装命令:
composer require richardfullmer/rabbitmq-management-api
包简介
An object oriented wrapper for the RabbitMQ Management HTTP Api
README 文档
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
统计信息
- 总下载量: 725.78k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 40
- 点击次数: 1
- 依赖项目数: 8
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-03-07