PHPackages                             ephp/socketio - 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. ephp/socketio

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

ephp/socketio
=============

Send events to socket.io though PHP

116.8k↓54.7%6PHP

Since Feb 20Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ephp/socketio)[ Packagist](https://packagist.org/packages/ephp/socketio)[ RSS](/packages/ephp-socketio/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Tembo
=====

[](#tembo)

MIT Licensed - Copyright © 2013. Martin Bažík

About
-----

[](#about)

Tembo is a rough socket.io client written in PHP. Its goal is to ease communications between your PHP application and a socket.io server. Protocol version of socket.io currently supported is 1. Only websocket transport is available at the moment.

Usage
-----

[](#usage)

### Sending messages

[](#sending-messages)

```
use Tembo\Message;
use Tembo\SocketIOClient;

$client = new SocketIOClient('http://localhost:8000');

$client->connect();

//send message
$client->message($message);

//emit event
$args = [...];
$client->emit($event, $args);

$client->disconnect();
```

### Listening to incoming messages

[](#listening-to-incoming-messages)

```
use Tembo\Message;

$callback = function($eventType, Message $message) {
	$eventName = $message->getName();
	$args = $message->getArgs();
};

$client->listen($callback);
```

Licence
-------

[](#licence)

This software is distributed under MIT License. See license.txt file for more info.

Special Thanks
--------------

[](#special-thanks)

Special thanks goes to Wisembly team authors of Elephant.io

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 60.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a5afbeefc4f2d3f4d94e66cabfbf064f16df3e4abd963b883ae3bfd746af76f?d=identicon)[ephp](/maintainers/ephp)

---

Top Contributors

[![guillaumepotier](https://avatars.githubusercontent.com/u/496234?v=4)](https://github.com/guillaumepotier "guillaumepotier (17 commits)")[![bazo](https://avatars.githubusercontent.com/u/181588?v=4)](https://github.com/bazo "bazo (5 commits)")[![ephp](https://avatars.githubusercontent.com/u/449392?v=4)](https://github.com/ephp "ephp (2 commits)")[![mieszko4](https://avatars.githubusercontent.com/u/3238370?v=4)](https://github.com/mieszko4 "mieszko4 (2 commits)")[![blub0hr](https://avatars.githubusercontent.com/u/4029791?v=4)](https://github.com/blub0hr "blub0hr (1 commits)")[![gmajoulet](https://avatars.githubusercontent.com/u/1492044?v=4)](https://github.com/gmajoulet "gmajoulet (1 commits)")

### Embed Badge

![Health badge](/badges/ephp-socketio/health.svg)

```
[![Health](https://phpackages.com/badges/ephp-socketio/health.svg)](https://phpackages.com/packages/ephp-socketio)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M91](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
