Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Files

Latest commit

author
aliyunmq
Jul 1, 2019
e47b95e · Jul 1, 2019

History

History
executable file
·
44 lines (32 loc) · 1.24 KB

README.md

File metadata and controls

executable file
·
44 lines (32 loc) · 1.24 KB

MQ HTTP PHP SDK

Alyun MQ Documents: http://www.aliyun.com/product/ons

Aliyun MQ Console: https://ons.console.aliyun.com

Intall Composer

To install composer by following commands, or see composer

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Install & Use

Add require to your composer.json

{
  "require": {
     "aliyunmq/mq-http-sdk": ">=1.0.0"
  }
}

Use Composer to install requires

composer install

Note: php version>=5.5.0, and xml extension of php is required.

Samples

V1.0.0 Samples

Publish Message

Consume Message

V1.0.1 Samples

Publish Message

Consume Message

Transaction Message

Note for 1.0.1: Http consumer only support timer msg(less than 3 days), no matter the msg is produced from http or tcp protocal.