jimchen/tim-sdk

腾讯即时通讯 IM Sdk

2.0.0.beta.7 2021-09-14 06:11 UTC

README

Build Status Latest Stable Version Latest Unstable Version Build Status Scrutinizer Code Quality Code Coverage Total Downloads License

腾讯即时通讯 IM Sdk.

需求

  1. PHP >= 7.2
  2. Composer
  3. OpenSSL 扩展,Curl 扩展

安装

$ composer require "jimchen/tim-sdk:^2.0"

用法

基本用法

use TimSDK;

$options = [
  'app_id'      => '14000xxxx',
  'identifier'  => 'admin',
  'key' => 'Your key',
  'http'        => [
	'timeout'  => 30,
  ],
];
$app = new TimSDK\Application($options);
$collect = $app->account->import('identifier', 'nickname', 'faceUrl');

文档

许可

MIT