PHPackages                             shakahl/socket.io-php-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. shakahl/socket.io-php-emitter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

shakahl/socket.io-php-emitter
=============================

PHP socket.io event emitter

0.1.1(9y ago)614.8k—5%2[1 issues](https://github.com/shakahl/socket.io-php-emitter/issues)MITPHPPHP &gt;=5.6.4

Since May 1Pushed 3y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (4)Used By (0)

shakahl/socket.io-php-emitter
=============================

[](#shakahlsocketio-php-emitter)

A PHP implementation of node.js socket.io-emitter (0.1.0).

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

[](#installation)

composer require shakahl/socket.io-php-emitter

Usage
-----

[](#usage)

### Emit payload message

[](#emit-payload-message)

```
use Predis;
use Shakahl\SocketIO;
...

$client = new Predis\Client();

(new Emitter($client))
    ->of('namespace')->emit('event', 'payload message');
```

### Flags

[](#flags)

Possible flags

- json
- volatile
- broadcast

#### To use flags, just call it like in examples bellow

[](#to-use-flags-just-call-it-like-in-examples-bellow)

```
use Predis;
use Shakahl\SocketIO;
...

$client = new Predis\Client();

(new Emitter($client))
    ->broadcast->emit('broadcast-event', 'payload message');

(new Emitter($client))
    ->flag('broadcast')->emit('broadcast-event', 'payload message');
```

### Emit an object

[](#emit-an-object)

```
use Predis;
use Shakahl\SocketIO;
...

$client = new Predis\Client();

(new Emitter($client))
    ->emit('broadcast-event', ['param1' => 'value1', 'param2' => 'value2', ]);
```

### Emit an object in a rooms

[](#emit-an-object-in-a-rooms)

```
use Predis;
use Shakahl\SocketIO;
...

$client = new Predis\Client();

(new Emitter($client))
    ->in(['room1', 'room2'])
    ->emit('broadcast-event', ['param1' => 'value1', 'param2' => 'value2', ]);
```

Credits
-------

[](#credits)

This library is forked from [exls/socket.io-emitter](https://github.com/exls/socket.io-emitter) created by Anton Pavlov.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~190 days

Total

2

Last Release

3479d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5264395?v=4)[Soma Szelpal](/maintainers/shakahl)[@shakahl](https://github.com/shakahl)

---

Top Contributors

[![shakahl](https://avatars.githubusercontent.com/u/5264395?v=4)](https://github.com/shakahl "shakahl (5 commits)")[![exls](https://avatars.githubusercontent.com/u/6387671?v=4)](https://github.com/exls "exls (1 commits)")

### Embed Badge

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

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[vcian/pulse-active-sessions

A Laravel Pulse card to show active user session.

11469.2k](/packages/vcian-pulse-active-sessions)[splitsoftware/split-sdk-php

Split SDK for PHP

161.3M2](/packages/splitsoftware-split-sdk-php)[vwo/vwo-php-sdk

VWO server side sdk

12166.4k](/packages/vwo-vwo-php-sdk)[ada-u/chocoflake

64bit time based id generator

14117.3k](/packages/ada-u-chocoflake)

PHPackages © 2026

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