定制 hautelook/rabbitmq-api 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

hautelook/rabbitmq-api

最新稳定版本:0.1

Composer 安装命令:

composer require hautelook/rabbitmq-api

包简介

PHP library to interact with the RabbitMQ API

README 文档

README

This library exposes the RabbitMQ Management API to PHP through Guzzle.

Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight

1. Installation

  1. Require the package via composer
$ composer require "hautelook/rabbitmq-api"
  1. Instantiate the library:
$client = new \Hautelook\RabbitMQ\Client(
    [
        'hostname' => 'localhost', // Default, don't have to pass this in
        'scheme' => 'https', // Default, don't have to pass this in
        'port' => 8080, // Default, don't have to pass this in
        'username' => 'guest', // Default, don't have to pass this in
        'password' => 'guest', // Default, don't have to pass this in
        'ssl' => true // Default, don't have to pass this in
    ]
);

2. Usage

2.1 Getting an overview

$overview = $client->getOverview();
print_r($overview);

2.2 Retrieving a queue

$queue = $client->getQueue('/', 'my_queue_name');
print_r($queue);

3. Running tests

You can run the unit and functional tests for this library by running phpunit after installing the dependencies.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 12
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-20