Download the PHP package zys5210/tencent_im without Composer
On this page you can find all versions of the php package zys5210/tencent_im. 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 tencent_im
腾讯云 IM 服务端 SDK for PHP
腾讯云 IM.
安装
说明:本项目默认会引入 tencent/tls-sig-api-v2 扩展包,所以你不需要手动引入
tencent/tls-sig-api-v2,否则可能会造成依赖冲突
配置
使用本扩展前需要登录 即时通信 IM 控制台 创建应用,配置管理员、获取 app_id、Key 等关键信息
更多请查看并熟读 即时通信 IM 服务端API
使用
其中
send方法接收三个参数。第一个参数 $servicename : 内部服务名,不同的 servicename 对应不同的服务类型;第二个参数$command:命令字,与 servicename 组合用来标识具体的业务功能;第三个参数为请求包主体示例:
v4/im_open_login_svc/account_import,其中im_open_login_svc为servicename;account_import为command
请求包示例:
导入单个帐号
获取用户在线状态
返回示例
设置资料
返回示例:
单发单聊消息
返回示例:
在 Hyperf 中使用
发布配置文件
编写 .env 文件
使用
在 Laravel 中使用
发布配置文件
编写 .env 文件
方法参数注入
服务名访问
Facades 门面使用(可以提示)
更多用法请参考 REST API 接口列表
TODO
License
MIT
All versions of tencent_im with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
tencent/tls-sig-api-v2 Version ^1.1
guzzlehttp/guzzle Version ^6.4|^7.0
ext-json Version *
ext-simplexml Version *
tencent/tls-sig-api-v2 Version ^1.1
guzzlehttp/guzzle Version ^6.4|^7.0
ext-json Version *
ext-simplexml Version *
The package zys5210/tencent_im contains the following files
Loading the files please wait ...