2017 © Pedro Peláez
 

library cmq

image

tiger/cmq

  • Monday, January 9, 2017
  • by Tiger
  • Repository
  • 1 Watchers
  • 3 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

qCloud CMQ 消息服务

基于 Laravel 封装腾讯云消息服务 API,非Laravel也可以用的, 但是没有测试过, (*1)

示例

  • Laravel

注册Provider 在config/app.php providers 中加入 下面代码, (*2)

Tiger\CMQ\CMQServiceProvider::class,, (*3)

生成配置文件, (*4)

artisan vendor:publish --provider=Tiger\\CMQ\\CMQServiceProvider --tag=config, (*5)

修改config/cmq.php 把对应的值替换, (*6)

代码示例, (*7)


$options = [ 'debug' => true, 'timeout' => 5, ]; // 创建 queue $attr = new CMQAttr\CreateQueueAttr(); $attr->Action = 'CreateQueue'; $attr->queueName = 'world-hello'; $response = app('cmq')->createQueue($attr, $options, 'post'); dd($response->isOk(), $response->getBody());

The Versions

09/01 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by If

qcloud cmq

09/01 2017

1.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by If

qcloud cmq