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.
1. Installation
- Require the package via composer
$ composer require "hautelook/rabbitmq-api"
- 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
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-11-20