From c245264f8ce008d50856ec32ed31968b39ded896 Mon Sep 17 00:00:00 2001 From: xuchao <85825770@qq.com> Date: Mon, 7 Aug 2017 12:43:10 +0800 Subject: [PATCH] update --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 60522b2..0838880 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,16 @@ -# yii2-mns +# yii2-mq 适用于Yii2的消息服务组件,支持阿里云的MNS,AWS的SQS,以及Redis。 +[![Latest Stable Version](https://poser.pugx.org/xutl/yii2-mq/v/stable.png)](https://packagist.org/packages/xutl/yii2-mq) +[![Total Downloads](https://poser.pugx.org/xutl/yii2-mq/downloads.png)](https://packagist.org/packages/xutl/yii2-mq) +[![Reference Status](https://www.versioneye.com/php/xutl:yii2-mq/reference_badge.svg)](https://www.versioneye.com/php/xutl:yii2-mq/references) +[![Build Status](https://img.shields.io/travis/xutl/yii2-mq.svg)](http://travis-ci.org/xutl/yii2-mq) +[![Dependency Status](https://www.versioneye.com/php/xutl:yii2-mq/dev-master/badge.png)](https://www.versioneye.com/php/xutl:yii2-mq/dev-master) +[![License](https://poser.pugx.org/xutl/yii2-mq/license.svg)](https://packagist.org/packages/xutl/yii2-mq) + + + 特别说明:非任务队列,也不是短消息那种私信组件,这是个纯消息组件。本来我是想做队列,我看了laravel,以及yii2其他人做的队列任务组件,我发现, 他们下发任务的时候要么发个闭包,要么发个序列化的类,包括我之前做的一个队列组件也是这么做的,后来我看了阿里云的消息队列服务的开发者 文档我觉得,消息服务本质上就是个纯消息服务,没必要把任务也放里面,一条消息就是一个普通的JSON字符串就行了,就像微信的公众号接收