Download the PHP package zdz/alimns-helper-php without Composer
On this page you can find all versions of the php package zdz/alimns-helper-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package alimns-helper-php
阿里云mns消息服务
使用composer安装
composer require zdz/alimns-helper-php
用法
初始化客户端
创建队列
-
queueName: 队列名称
- attributes: \AliyunMNS\Model\QueueAttributes对象
发送消息
-
queueName: 队列名称
-
messageBody: 消息内容
-
delaySeconds: 指定的秒数延后可被消费,单位为秒
-
priority: 指定消息的优先级权值,优先级越高的消息,越容易更早被消费, 取值范围1~16(其中1为最高优先级),默认优先级为8
- base64:base64加密,默认true
消费消息
-
queueName: 队列名称
-
autoDelete: 是否自动删除,默认false
- waitSeconds: 本次 ReceiveMessage 请求最长的Polling等待时间,单位为秒。默认30,30是最大值
删除消息
-
queueName: 队列名称
- receiptHandle: 通过消费消息的返回值获取的临时句柄,
删除队列
- queueName: 队列名称
All versions of alimns-helper-php with dependencies
PHP Build Version
Package Version
Requires
aliyun/aliyun-mns-php-sdk Version
>=1.0.0
The package zdz/alimns-helper-php contains the following files
Loading the files please wait ....