mkhairul/amqp
Composer 安装命令:
composer require mkhairul/amqp
包简介
PhpAmqpLib wrapper
README 文档
README
Its a PhpAmqpLib wrapper.
Install
Via Composer
$ composer require mkhairul/amqp dev-master
Usage
YAML Config File (config.yaml)
rabbit: host: localhost port: 5672 login: guest pass: guest vhost: / exchange: name: someExchange queue: name: someQueue
Script
<?php require_once 'vendor/autoload.php'; use Symfony\Component\Yaml\Yaml; use Mkhairul\AMQPWrapper\AMQPWrapper; $config = Yaml::parse(file_get_contents('config.yaml')); $conn = new AMQPWrapper($config, 'rabbit'); $conn->sendMessage('message-type', 'Time\'s Up!');
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-09-15