PHPackages                             bazo/tembo - 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. bazo/tembo

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

bazo/tembo
==========

Send events to socket.io though PHP

101.7k21PHP

Since Jun 29Pushed 12y ago1 watchersCompare

[ Source](https://github.com/bazo/tembo)[ Packagist](https://packagist.org/packages/bazo/tembo)[ RSS](/packages/bazo-tembo/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 65.4% 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/8e88095e75ebabe4a1ace0bf87ec2813e6182f2ee80ac025f8e5bc5e00917b4f?d=identicon)[bazo](/maintainers/bazo)

---

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)")[![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/bazo-tembo/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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