承接 romeoz/rock-mq 相关项目开发

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

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

romeoz/rock-mq

最新稳定版本:0.10.0

Composer 安装命令:

composer require romeoz/rock-mq

包简介

Unified API for message queue services

README 文档

README

Latest Stable Version Total Downloads Build Status Coverage Status License

Rock MQ on Packagist

Features

Installation

From the Command Line:

composer require romeoz/rock-mq:*@dev

In your composer.json:

{
    "require": {
        "romeoz/rock-mq": "*@dev"
    }
}

Quick Start

Run broker:

php tests/data/mq/rabbit/simple_server.php &

Code:

use rock\mq\RabbitQueue;

$rabbit = new RabbitQueue();
$rabbit->send('test'); // result: "Hi! I am server: test"

// or background

$rabbit->sendBackground('test');

####Pub/Sub

Run broker:

php tests/data/mq/rabbit/pub_server.php &

Code:

use rock\mq\RabbitQueue;

$rabbit = new RabbitQueue();
$rabbit->blocking = false;
$rabbit->type = 'direct';
$rabbit->exchange = 'direct_test';

$rabbit->subscribe('foo'); // result: "Hi! I am server: foo"

Requirements

  • PHP 5.4+
  • Gearman should be installed apt-get install libgearman7. Also, should be installed PHP extension apt-get install php5-gearman
  • RabbitMQ should be installed apt-get install rabbitmq-server.
  • ZeroMQ should be installed apt-get install libzmq3. Also, should be installed PHP extension apt-get install php-zmq

Note: if you have problems with the installation, then see config .travis.

License

A message queue API is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-02