longing / easy-im
汇集各大厂商的IM-SDK
1.0
2020-09-08 07:29 UTC
Requires
- php: >=7.2
- ext-json: *
- ext-openssl: *
- guzzlehttp/guzzle: ^6.2 || ^7.0
- monolog/monolog: ^1.22 || ^2.0
- pimple/pimple: ^3.0
- psr/simple-cache: ^1.0
- symfony/cache: ^3.3 || ^4.3 || ^5.0
- symfony/event-dispatcher: ^4.3 || ^5.0
- symfony/http-foundation: ^2.7 || ^3.0 || ^4.0 || ^5.0 || ^5.1.5
- symfony/psr-http-message-bridge: ^0.3 || ^1.0 || ^2.0
- tencent/tls-sig-api-v2: 1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.15
- mockery/mockery: ^1.2.3
- phpstan/phpstan: ^0.12.0
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2025-03-29 01:11:47 UTC
README
📦 基于腾讯IM的php-sdk
Requirement
- PHP> = 7.2
- ** Composer **
- 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