Download the PHP package yungangunite/websocket-server-sdk without Composer
On this page you can find all versions of the php package yungangunite/websocket-server-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download yungangunite/websocket-server-sdk
More information about yungangunite/websocket-server-sdk
Files in yungangunite/websocket-server-sdk
Download yungangunite/websocket-server-sdk
More information about yungangunite/websocket-server-sdk
Files in yungangunite/websocket-server-sdk
Vendor yungangunite
Package websocket-server-sdk
Short Description PHP SDK for WebSocket service integration
License MIT
Homepage https://github.com/your-username/websocket-server-sdk
Package websocket-server-sdk
Short Description PHP SDK for WebSocket service integration
License MIT
Homepage https://github.com/your-username/websocket-server-sdk
Please rate this library. Is it a good library?
Informations about the package websocket-server-sdk
YG WebSocket Server SDK
这是一个用于快速接入YG WebSocket服务的PHP SDK。
安装
使用Composer安装:
系统要求
- PHP >= 7.4
- Composer
- PHP JSON扩展
- PHP OpenSSL扩展
使用方法
1. 创建客户端实例
2. 注册用户
3. 获取WebSocket令牌
完整示例
查看 examples/example.php
文件获取完整的使用示例。
注意事项
-
安全性
- 请妥善保管
app_secret
- 使用HTTPS进行API调用
- 定期更新服务器令牌
- 及时处理过期的WebSocket令牌
- 密码使用SHA256加密存储
- 请妥善保管
-
错误处理
- 处理网络异常情况
- 记录关键错误日志
- 处理用户状态检查(如用户被禁用)
- 性能优化
- 避免频繁获取WebSocket令牌
- 及时关闭不需要的连接
错误码说明
错误码 | 说明 |
---|---|
400 | 请求参数错误(如用户名已存在、邮箱已被使用) |
401 | 未授权或令牌无效(如服务器令牌无效、用户被禁用) |
403 | 权限不足 |
404 | 资源不存在(如应用不存在或未激活) |
500 | 服务器内部错误 |
技术支持
如有问题,请联系技术支持:
- 邮箱:[email protected]
- 电话:400-xxx-xxxx
All versions of websocket-server-sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
guzzlehttp/guzzle Version ^7.0
ext-json Version *
predis/predis Version ^2.0
guzzlehttp/guzzle Version ^7.0
ext-json Version *
predis/predis Version ^2.0
The package yungangunite/websocket-server-sdk contains the following files
Loading the files please wait ....