soanix/elephant.io

通过PHP发送事件到WebSocket实时引擎

4.6 2023-02-10 22:38 UTC

This package is auto-updated.

Last update: 2024-09-25 11:27:31 UTC


README

Build Status Latest Stable Version Total Downloads License

        ___     _,.--.,_         Elephant.io is a rough websocket client
      .-~   ~--"~-.   ._ "-.     written in PHP. Its goal is to ease the
     /      ./_    Y    "-. \    communications between your PHP Application and
    Y       :~     !         Y   a real-time server.
    lq p    |     /         .|
 _   \. .-, l    /          |j   Requires PHP 5.4 and openssl, licensed under
()\___) |/   \_/";          !    the MIT License.
 \._____.-~\  .  ~\.      ./
            Y_ Y_. "vr"~  T      Built-in Engines :
            (  (    |L    j      - Socket.io 2.x
            [nn[nn..][nn..]      - Socket.io 1.x
          ~~~~~~~~~~~~~~~~~~~    - Socket.io 0.x (courtesy of @kbu1564)

通知

由于这个库的维护者已经不再使用它,因此支持已遗憾地停止。但请高兴,现在有一个新的仓库在其自己的组织下得到维护:[https://github.com/ElephantIO/elephant.io](https://github.com/ElephantIO/elephant.io)!:)

安装

我们建议您使用composer,以下命令: php composer.phar require wisembly/elephant.io。对于其他方法,您可以查看发布页面或git克隆URL。

文档

文档尚未编写,但您应该查看示例目录,以了解这个库应该如何工作。

特别感谢

特别感谢Mark Karpeles,他帮助项目创始人理解了WebSocket的工作方式。