PHPackages                             goez/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. [HTTP &amp; Networking](/categories/http)
4. /
5. goez/socket.io-php-emitter

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

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

PHP socket.io event emitter

1.0.0(3y ago)28.2k5MITPHPPHP ^8.1

Since Jan 15Pushed 3y ago1 watchersCompare

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

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

goez/socket.io-php-emitter [![Build Status](https://camo.githubusercontent.com/298636a74db2f1eee64b5c69cca1f37f0fa6b38a2f7bf36151cceb038d123f6e/68747470733a2f2f7472617669732d63692e6f72672f676f657a2d746f6f6c732f736f636b65742e696f2d7068702d656d69747465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/goez-tools/socket.io-php-emitter)
==========================================================================================================================================================================================================================================================================================================================================================

[](#goezsocketio-php-emitter-)

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

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

[](#installation)

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

Usage
-----

[](#usage)

### Emit payload message

[](#emit-payload-message)

```
use Predis\Client;
use Goez\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 Goez\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 Goez\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 Goez\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

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~1800 days

Total

2

Last Release

1244d ago

Major Versions

0.1.2 → 1.0.02022-12-21

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

1.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/000012ed8f10873694d29e2f60b7b71171c088d6fd655a695210dd2fe46172b9?d=identicon)[jaceju](/maintainers/jaceju)

---

Top Contributors

[![jaceju](https://avatars.githubusercontent.com/u/310474?v=4)](https://github.com/jaceju "jaceju (15 commits)")[![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)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[yiicod/yii2-socketio

The simple and powerful socketio for the Yii2 framework

4619.7k](/packages/yiicod-yii2-socketio)[sfcod/socketio

SocketIo adapter for Symfony

252.7k](/packages/sfcod-socketio)

PHPackages © 2026

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