richardfullmer/rabbitmq-management-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 39
  • Watchers: 3
  • Forks: 37
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-03-07