定制 nicoka49/rabbitmq-management-api 二次开发

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

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

nicoka49/rabbitmq-management-api

最新稳定版本:v1.0.0

Composer 安装命令:

composer require nicoka49/rabbitmq-management-api

包简介

An object oriented wrapper for the RabbitMQ Management HTTP Api; a PHP 8 fork from richardfullmer

README 文档

README

A simple object oriented wrapper for the RabbitMQ Management HTTP Api in PHP 7.1+

Uses PHP-HTTP for requests.

A PHP 8-compatible fork of richardfullmer/rabbitmq-management-api.

Installation

Installable through composer via:

$ composer require andrewmy/rabbitmq-management-api

Additionally, you require a httplug compatible client.

For example, use the Guzzle 7 adapter:

$ composer require php-http/guzzle7-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

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 37
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-29