Download the PHP package openilink/openilink-sdk-php without Composer
On this page you can find all versions of the php package openilink/openilink-sdk-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download openilink/openilink-sdk-php
More information about openilink/openilink-sdk-php
Files in openilink/openilink-sdk-php
Download openilink/openilink-sdk-php
More information about openilink/openilink-sdk-php
Files in openilink/openilink-sdk-php
Vendor openilink
Package openilink-sdk-php
Short Description PHP SDK for the OpenILink Bot API.
License MIT
Package openilink-sdk-php
Short Description PHP SDK for the OpenILink Bot API.
License MIT
Please rate this library. Is it a good library?
Informations about the package openilink-sdk-php
openilink-sdk-php
微信 iLink Bot API 的 PHP SDK。
特性
- 扫码登录,支持扫码/过期回调
- 长轮询消息监听,自动重试与退避,动态超时
- 主动推送(自动缓存
context_token) - 发送图片、视频、文件,MIME 自动路由
- CDN 加密上传/下载(AES-128-ECB)
- 语音消息解码(可插拔 SILK 解码器 + WAV 封装)
- 输入状态指示器、Bot 配置
- 可注入自定义 transport,便于测试或接入自有 HTTP 栈
- 结构化错误类型(
APIError、HTTPError、NoContextTokenException) - 轻量依赖,仅依赖 PHP 扩展
要求
- PHP 8.1+
ext-curlext-jsonext-openssl
快速开始
API
创建客户端
扫码登录
登录成功后,客户端的 Token 和 BaseURL 会自动更新。
接收消息
monitor() 会自动缓存每个用户的 context_token,供 push() 使用。服务端返回的 longpolling_timeout_ms 会被自动采纳;成功响应里的 sync_buf 和原始 HTTP 元数据可通过 on_response / raw_response 读取。
发送文本
发送媒体
下载媒体
语音解码
SDK 通过可插拔的 silk_decoder 支持语音消息解码,保持对外部解码器的开放性:
也可以单独使用 WAV 封装:
其他
错误处理
常量
许可证
MIT
All versions of openilink-sdk-php with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.1
ext-curl Version *
ext-json Version *
ext-openssl Version *
ext-curl Version *
ext-json Version *
ext-openssl Version *
The package openilink/openilink-sdk-php contains the following files
Loading the files please wait ...