承接 markup/rabbitmq-management-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

markup/rabbitmq-management-api

最新稳定版本:2.1.4

Composer 安装命令:

composer require markup/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.5.

Forked from 'richardfullmer/php-rabbitmq-management-api' in order to modernize the code and add tests.

Uses Guzzle for REST requests.

Installation

Installable through composer via:

$ composer require markup/rabbitmq-management-api

Basic Usage

<?php

use Markup\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

统计信息

  • 总下载量: 83.81k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 12
  • Forks: 37
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-07-13