1. Go to this page and download the library: Download code-lives/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/ */
code-lives / im example snippets
im_id Im 申请的id
im_key Im 申请的key
admin_id Im 管理员账号【选填】用于发送一些消息。比如 A和B在聊天 拿着A账号给B发送一条消息 或者 创建群组 查询群组等
$Im = new Im\api\Im($im_id,$im_key);
$Im->genUserSig($uid);