PHP code example of longing / easy-im
1. Go to this page and download the library: Download longing/easy-im library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
longing / easy-im example snippets
use EasyIM\Factory;
$options = [
'sdk_app_id' => '1400306676', // sdkAppId
'secret' => '3e373d1ef02ef192ee26c94760681cdf492b4b7f053fc16504d30a77a028e76d', // secret
'identifier' => 'admin', // 管理员账号
'expire' => 86400, // 签名过期时间
// ...
];
$app = Factory::TencentIM($options);