2017 © Pedro Peláez
 

library qcloud-tim

Qcloud TIM php sdk

image

xutl/qcloud-tim

Qcloud TIM php sdk

  • Wednesday, August 1, 2018
  • by xutl
  • Repository
  • 0 Watchers
  • 0 Stars
  • 73 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

qcloud-tim

腾讯云 TIM 云通信SDK,支持 同步 异步模式。, (*1)

Build Status License Latest Stable Version Total Downloads, (*2)

Installation

The preferred way to install this extension is through composer., (*3)

Either run, (*4)

php composer.phar require --prefer-dist xutl/qcloud-tim

or add, (*5)

"xutl/qcloud-tim": "~1.0"

to the require section of your composer.json file., (*6)

Use

use XuTL\QCloud\Tim\Tim;
use XuTL\QCloud\Tim\Constants;

$client = new Tim(
    '1234557',
    '12341234',
    '13241234/j8/341234+HOcet3Of1cTErNDm9XubwIeAyO0YE1bQFWNn+Iyc4',
    'MFYwEAYHKoZIzj0CAQYF134K4EEAAoDQgAEmV31rGrO12341234TRcQJLu+8w689UYMxsZE06WUKwEQCCwCBh6PhznHrdzn9XExKzQ5vV7m8CHgMjtGBNW0BVjZ/iMnOA==',
    'webmaster'
);

//操作用户

$account = $client->getAccount('test112');
//获取用户资料
$profile = $account->getProfile();
//T下线
$account->kick();

//查询在线状态
$account->state();

//更多接口请看 
XuTL\QCloud\Tim\Account 类

//群组操作

$group = $client->getGroup('test');

//修改圈子属性
$groupAttributes = new GroupAttributes();
$groupAttributes->setName('方圆百里找对手');
$groupAttributes->setApplyJoinOption(Constants::GROUP_APPLY_JOIN_OPTION_FREE_ACCESS);
try {
    $res = $group->setInfo($groupAttributes);
    print_r($res);
} catch (\XuTL\QCloud\Tim\Exception\TIMException $e) {
    print_r($e->getMessage());
}
//更多圈子接口请看 
XuTL\QCloud\Tim\Group 类

The Versions

01/08 2018

dev-master

9999999-dev

Qcloud TIM php sdk

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar xutl

sdk qcloud tim

01/08 2018

1.0.0.2

1.0.0.2

Qcloud TIM php sdk

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar xutl

sdk qcloud tim

31/07 2018

1.0.0.1

1.0.0.1

Qcloud TIM php sdk

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar xutl

sdk qcloud tim

20/07 2018

1.0.0

1.0.0.0

Qcloud TIM php sdk

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar xutl

sdk qcloud tim