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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
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安装:

系统要求

使用方法

1. 创建客户端实例

2. 注册用户

3. 获取WebSocket令牌

完整示例

查看 examples/example.php 文件获取完整的使用示例。

注意事项

  1. 安全性

    • 请妥善保管 app_secret
    • 使用HTTPS进行API调用
    • 定期更新服务器令牌
    • 及时处理过期的WebSocket令牌
    • 密码使用SHA256加密存储
  2. 错误处理

    • 处理网络异常情况
    • 记录关键错误日志
    • 处理用户状态检查(如用户被禁用)
  3. 性能优化
    • 避免频繁获取WebSocket令牌
    • 及时关闭不需要的连接

错误码说明

错误码 说明
400 请求参数错误(如用户名已存在、邮箱已被使用)
401 未授权或令牌无效(如服务器令牌无效、用户被禁用)
403 权限不足
404 资源不存在(如应用不存在或未激活)
500 服务器内部错误

技术支持

如有问题,请联系技术支持:


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
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yungangunite/websocket-server-sdk contains the following files

Loading the files please wait ....