Download the PHP package limingxinleo/easemob without Composer
On this page you can find all versions of the php package limingxinleo/easemob. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package easemob
easemob
安装方法
composer require limingxinleo/easemob
使用方法
- 初始化
use limx\tools\Easemob; $option = [ 'client_id' => env('EASEMOB_ID'), 'client_secret' => env('EASEMOB_SECRET'), 'org_name' => env('EASEMOB_ORG_NAME'), 'app_name' => env('EASEMOB_APP_NAME'), ]; $easemob = new Easemob($option);
- 发送环信
$res = $easemob->sendToUsers(['receiver'], 'sender', ['msg' => '环信测试']);
- 设置StorageAdapter
$easemob->setStorageAdapter(function ($data) { $file = BASE_PATH . '/storage/cache/data/huanxin'; if ($data) { // 存储 file_put_contents($file, $data); } else { if (file_exists($file)) { return file_get_contents($file); } return false; } });
All versions of easemob with dependencies
PHP Build Version
Package Version
The package limingxinleo/easemob contains the following files
Loading the files please wait ....