polatdev/pocket.io

使用 PHP 连接到 websocket

1.0.2 2021-10-31 10:38 UTC

This package is auto-updated.

Last update: 2024-09-19 23:00:18 UTC


README

PocketIO is a rough websocket client written in PHP. Its goal is to ease the
communications between your PHP Application and a real-time server.

Requires PHP 7.4 and openssl, licensed under the MIT License.

Built-in Engines :
- Socket.io 4.x -> works!
- Socket.io 3.x -> works!
- Socket.io 2.x -> not tested
- Socket.io 1.x -> not tested

Special thanks Elephant.IO teams.

安装

我们建议您使用 composer,具体命令如下:php composer.phar require polatdev/pocket.io

或者简单地:composer require polatdev/pocket.io

其他方式,您可以查看发布页面或 git 克隆 URL。

文档

文档尚未编写,但您应该查看 示例目录 以了解此库的基本用法。

特别感谢

特别感谢 Elephant.IO 团队。