PHPackages                             skorovodkin/socket.io-emitter - 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. skorovodkin/socket.io-emitter

ActiveLibrary

skorovodkin/socket.io-emitter
=============================

A PHP implementation of socket.io-emitter

0.8.1(10y ago)01.7kMITPHPPHP &gt;=5.3

Since Oct 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/skorovodkin/socket.io-php-emitter)[ Packagist](https://packagist.org/packages/skorovodkin/socket.io-emitter)[ Docs](https://github.com/skorovodkin/socket.io-php-emitter)[ RSS](/packages/skorovodkin-socketio-emitter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (7)Used By (0)

socket.io-php-emitter
=====================

[](#socketio-php-emitter)

A PHP implementation of socket.io-emitter (0.2.0) with namespace support.

This project requires a Redis client for PHP. If you dont have the [PECL Redis](https://github.com/nicolasff/phpredis) installed, the emitter will default to using [TinyRedisClient](https://github.com/ptrofimov/tinyredisclient). You can, however, pass in any Redis client that supports a `publish` method.

Installation and development
----------------------------

[](#installation-and-development)

To install and use in your PHP project, install it as a [composer package](https://packagist.org/packages/skorovodkin/socket.io-emitter). Install dependencies with `composer install`.

To run tests, invoke `make test`. The current test suite will just be checking redis monitor that everything is published correctly. Some work will be put into making a better integration test suite in the near future.

Usage
-----

[](#usage)

### Initialization

[](#initialization)

```
$redis = new \Redis(); // Using the Redis extension provided client
$redis->connect('127.0.0.1', '6379');
$emitter = new SocketIO\Emitter($redis);
$emitter->of('namespace')->emit('event', 'payload str');
```

### Broadcasting and other flags

[](#broadcasting-and-other-flags)

Possible flags

- json
- volatile
- broadcast

```
// Below initialization will create a  phpredis client, or a TinyRedisClient depending on what is installed
$emitter = new SocketIO\Emitter(array('port' => '6379', 'host' => '127.0.0.1'));
// broadcast can be replaced by any of the other flags
$emitter->broadcast->emit('other event', 'such data');
```

### Emitting objects

[](#emitting-objects)

```
$emitter = new SocketIO\Emitter(); // If arguments are not provided, they will default to array('port' => '6379', 'host' => '127.0.0.1')
$emitter->emit('event', array('property' => 'much value', 'another' => 'very object'));
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.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.

###  Release Activity

Cadence

Every ~107 days

Recently: every ~134 days

Total

6

Last Release

3693d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ae1f73f56f1aaa15749e410023754cd1b3fa95fd5e1023150a1a0bd7d8eec25?d=identicon)[skorovodkin](/maintainers/skorovodkin)

---

Top Contributors

[![rase-](https://avatars.githubusercontent.com/u/1220601?v=4)](https://github.com/rase- "rase- (12 commits)")[![kitek](https://avatars.githubusercontent.com/u/1109937?v=4)](https://github.com/kitek "kitek (1 commits)")[![marcguyer](https://avatars.githubusercontent.com/u/35496?v=4)](https://github.com/marcguyer "marcguyer (1 commits)")

---

Tags

emitternamespaceSocket.ioemit

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/event

Event package

1.6k141.6M183](/packages/league-event)[rase/socket.io-emitter

A PHP implementation of socket.io-emitter

345240.1k2](/packages/rase-socketio-emitter)[workerman/phpsocket.io

A server side alternative implementation of socket.io in PHP based on Workerman

2.3k578.6k16](/packages/workerman-phpsocketio)[ashiina/socket.io-emitter

\*Maintained\* A PHP implementation of socket.io-emitter

38361.6k1](/packages/ashiina-socketio-emitter)[jbzoo/event

Library for event-based development

29760.0k5](/packages/jbzoo-event)[elephantio/elephant.io

Send events to a socket.io server through PHP

135713.8k7](/packages/elephantio-elephantio)

PHPackages © 2026

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