PHPackages                             edson-k/elephant.io - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. edson-k/elephant.io

ActiveLibrary[HTTP &amp; Networking](/categories/http)

edson-k/elephant.io
===================

Send events to a socket.io server through PHP

4.7.2(1y ago)185MITPHPPHP &gt;=7.2

Since Aug 8Pushed 1y agoCompare

[ Source](https://github.com/edson-k/elephant.io)[ Packagist](https://packagist.org/packages/edson-k/elephant.io)[ Docs](https://elephantio.github.io/elephant.io/)[ RSS](/packages/edson-k-elephantio/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Elephant.io
===========

[](#elephantio)

[![Build Status](https://github.com/edson-k/elephant.io/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/edson-k/elephant.io/actions/workflows/continuous-integration.yml/badge.svg)[![Latest Stable Version](https://camo.githubusercontent.com/cb5f61571861ff908c651716443a8e61d54c4e9e44273df4e2cb61768eaf92ec/68747470733a2f2f706f7365722e707567782e6f72672f6564736f6e2d6b2f656c657068616e742e696f2f762f737461626c652e737667)](https://packagist.org/packages/edson-k/elephant.io)[![Total Downloads](https://camo.githubusercontent.com/b63ea7034cb3416e48e51e3b91918f33ef62091c719958dd8ca01b70a53f3314/68747470733a2f2f706f7365722e707567782e6f72672f6564736f6e2d6b2f656c657068616e742e696f2f646f776e6c6f6164732e737667)](https://packagist.org/packages/edson-k/elephant.io)[![License](https://camo.githubusercontent.com/b83122f2838e62a750082a7deb2870a2c254391c839c1761923b482206226f1a/68747470733a2f2f706f7365722e707567782e6f72672f656c657068616e74696f2f656c657068616e742e696f2f6c6963656e73652e737667)](https://packagist.org/packages/elephantio/elephant.io)

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

```

Installation
------------

[](#installation)

We are suggesting you to use composer, using `composer require edson-k/elephant.io`. For other ways, you can check the release page, or the git clone urls.

Usage
-----

[](#usage)

To use Elephant.io to communicate with socket.io server is described as follows.

```
