doc:文件说明
This commit is contained in:
parent
f5fcf13b35
commit
ac79df8bf5
28
README.md
28
README.md
|
@ -1,16 +1,40 @@
|
|||
# rocket-mq-thinkphp 适配客户端
|
||||
|
||||
## 使用说明
|
||||
|
||||
本客户端对接公司mq,实现mq消息推送与订阅,目前支持一对一与一对多订阅!
|
||||
|
||||
### 安装
|
||||
|
||||
1. 添加镜像地址
|
||||
```shell
|
||||
{
|
||||
"repositories": [{
|
||||
"type": "composer",
|
||||
"url": "http://composer.saas.test.tianmagroup.com"
|
||||
}]
|
||||
}
|
||||
|
||||
```
|
||||
2. composer安装
|
||||
```shell
|
||||
composer require tm_xls/rocket-mq-client-thinkphp
|
||||
```
|
||||
|
||||
|
||||
### 配置
|
||||
```php
|
||||
return [
|
||||
'host' => '', //mq地址
|
||||
'callback' => '/rocketmq/producer/notify', //回调地址默认不做修改
|
||||
//订阅节点
|
||||
'subscribe' => [
|
||||
]
|
||||
];
|
||||
|
||||
```
|
||||
|
||||
### 生产者
|
||||
|
||||
见example "Producer"
|
||||
|
||||
### 消费者
|
||||
消费者执行逻辑由开发者定义,但是仍遵循如下规则:
|
||||
|
|
Loading…
Reference in New Issue
Block a user