承接 aztech/event-bus-extra-amqp 相关项目开发

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

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

aztech/event-bus-extra-amqp

Composer 安装命令:

composer require aztech/event-bus-extra-amqp

包简介

aztech/event-bus AMQP channel provider

README 文档

README

Build status

Build Status Code Coverage Scrutinizer Quality Score Dependency Status HHVM Status

Stability

Latest Stable Version Latest Unstable Version

Installation

Via Composer

Composer is the only supported way of installing aztech/event-bus-extra-amqp . Don't know Composer yet ? Read more about it.

$ composer require "aztech/event-bus-extra-amqp":"~1"

Autoloading

Add the following code to your bootstrap file :

require_once 'vendor/autoload.php';

Dependencies

  • videlalvaro/php-amqplib : ~2

Supported elements :

  • Persistent publish
  • Subscribe

Configuration options & defaults

Parameter Default Description
host 127.0.0.1 Hostname of the AMQP broker.
port 5672 Listening port of the AMQP broker.
user guest AMQP broker username.
pass guest AMQP broker password.
vhost / Virtual host name on the AMQP broker.
exchange exchange Name of the exchange.
event-queue event-queue Name of the event queue.
event-prefix Prefix that will be automatically added to published/stripped from received event topics.
auto-create true Toggles the providers topology creation feature. Allows to auto-create the required exchanges, queues, and bindings for the provider's need.

Initialization

require_once 'vendor/autoload.php';

use \Aztech\Events\Bus\Events;
use \Aztech\Events\Bus\Plugins\Amqp\Amqp;

Amqp::loadPlugin();

// See options chart for actual parameters
$options = array(...);

$publisher = Events::createPublisher('amqp', $options);
$event = Events::create('category', array('property' => 'value'));

$publisher->publish($event);
// ...

Caveats

At the time being, the AMQP event plugin uses topic based routing to publish events. Multiple nodes connecting to a single queue will work in round-robin mode.

It is possible to use different routing scenarios/exchange types, but that is left as an exercise to the reader (Hint: no need to build/patch the current plugin).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-08-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固