Skip to content

TestsLing/easy-im

Repository files navigation

📦 基于腾讯IM的php-sdk

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

Requirement

  1. PHP> = 7.2
  2. ** Composer **
  3. openssl拓展

Installation

$ composer require longing/easy-im:~1.0 -vvv

Usage

基本使用(以服务端为例):

use EasyIM\Factory;

$options = [
    'sdk_app_id'    => '1400306676',                                                        // sdkAppId
    'secret'        => '3e373d1ef02ef192ee26c94760681cdf492b4b7f053fc16504d30a77a028e76d',  // secret
    'identifier'    => 'admin',                                                             // 管理员账号
    'expire'        => 86400,                                                               // 签名过期时间
    // ...
];

$app = Factory::TencentIM($options);

更多

License

MIT

About

基于各大厂商IM开发的composer包

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages