An open API service indexing awesome lists of open source software.

https://github.com/xutl/qcloud-cmq

腾讯云的 CMQ PHP SDK,全功能
https://github.com/xutl/qcloud-cmq

qcloud qcloud-cmq tencent tencent-cloud

Last synced: 8 days ago
JSON representation

腾讯云的 CMQ PHP SDK,全功能

Awesome Lists containing this project

README

        

# qcloud-cmq

这个SDK和阿里云的MNS通用,直接可切换,
支持 同步 异步模式。

[![Build Status](https://travis-ci.org/xutl/qcloud-cmq.svg?branch=master)](https://travis-ci.org/xutl/qcloud-cmq)
[![License](https://poser.pugx.org/xutl/qcloud-cmq/license.svg)](https://packagist.org/packages/xutl/qcloud-cmq)
[![Latest Stable Version](https://poser.pugx.org/xutl/qcloud-cmq/v/stable.png)](https://packagist.org/packages/xutl/qcloud-cmq)
[![Total Downloads](https://poser.pugx.org/xutl/qcloud-cmq/downloads.png)](https://packagist.org/packages/xutl/qcloud-cmq)
## Installation

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist xutl/qcloud-cmq
```

or add

```
"xutl/qcloud-cmq": "~1.0"
```

to the require section of your `composer.json` file.

## Use

```php
use XuTL\QCloud\Cmq\Client;

$client = new Client('https://cmq-queue-bj.api.qcloud.com','abcdedgasdf','abcdedgasdf');
$request = new \XuTL\QCloud\Cmq\Requests\ListTopicRequest();
try {
$response = $client->listTopic($request);
print_r($response);
} catch (Exception $e) {
print_r($e->getMessage());
}

```

## For Laravel

[xutl/laravel-qcloud-cmq-queue](https://github.com/xutl/laravel-qcloud-cmq-queue)