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

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

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

PHP socket.io event emitter

0.1.3(4y ago)01.3k[2 PRs](https://github.com/furality/socket.io-php-emitter/pulls)MITPHPPHP ^8.1

Since Jan 15Pushed 3y agoCompare

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

READMEChangelog (1)Dependencies (7)Versions (5)Used By (0)

Furality/socket.io-php-emitter [![Build Status](https://github.com/furality/socket.io-php-emitter/actions/workflows/test.yml/badge.svg)](https://github.com/furality/socket.io-php-emitter/actions/workflows/test.yml)
======================================================================================================================================================================================================================

[](#furalitysocketio-php-emitter-)

A PHP implementation of node.js socket.io-emitter.

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

[](#installation)

```
composer require Furality/socket.io-php-emitter
```

Usage
-----

[](#usage)

### Emit payload message

[](#emit-payload-message)

```
use Predis\Client;
use Furality\SocketIO\Emitter;
...

$client = new 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\Client;
use Furality\SocketIO\Emitter;
...

$client = new 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\Client;
use Furality\SocketIO\Emitter;
...

$client = new Client();

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

### Emit an object in multiple rooms

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

```
use Predis\Client;
use Furality\SocketIO\Emitter;
...

$client = new Client();

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

Credits
-------

[](#credits)

This library is forked from [shakahl/socket.io-emitter](https://github.com/shakahl/socket.io-emitter) created by Soma Szélpál.

The [shakahl/socket.io-emitter](https://github.com/shakahl/socket.io-emitter) 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

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 52.6% 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 ~1559 days

Total

2

Last Release

1483d ago

PHP version history (2 changes)0.1.2PHP &gt;=5.6.4

0.1.3PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/0fff6fcbe78d50d86da6eea0e8d4fa5e2450f5e556790347ca8bf5015febbfb4?d=identicon)[alofoxx](/maintainers/alofoxx)

![](https://www.gravatar.com/avatar/b766b35262c66991757ee25a429a97eda3f9d12c423c0b9749d1324692078c55?d=identicon)[kakious](/maintainers/kakious)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/furality-socketio-php-emitter/health.svg)](https://phpackages.com/packages/furality-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)
