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 today

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

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

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

1532d ago

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

0.1.3PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1343190?v=4)[Alofoxx](/maintainers/alofoxx)[@Alofoxx](https://github.com/Alofoxx)

![](https://avatars.githubusercontent.com/u/5652653?v=4)[Kakious](/maintainers/kakious)[@kakious](https://github.com/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.

23.9k69.5k](/packages/grumpydictator-firefly-iii)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[blair2004/nexopos

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

1.2k2.4k](/packages/blair2004-nexopos)[splitsoftware/split-sdk-php

Split SDK for PHP

161.4M2](/packages/splitsoftware-split-sdk-php)

PHPackages © 2026

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