PHPackages                             vluzrmos/lumen-socketio - 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. [API Development](/categories/api)
4. /
5. vluzrmos/lumen-socketio

Abandoned → [http://lumen.laravel.com/docs/events#broadcasting-events](/?search=http%3A%2F%2Flumen.laravel.com%2Fdocs%2Fevents%23broadcasting-events)Library[API Development](/categories/api)

vluzrmos/lumen-socketio
=======================

The Laravel Lumen Socketio Broadcasting.

v0.1.5(10y ago)27972[1 issues](https://github.com/vluzrmos/lumen-socketio/issues)DBADPHP

Since May 5Pushed 10y ago3 watchersCompare

[ Source](https://github.com/vluzrmos/lumen-socketio)[ Packagist](https://packagist.org/packages/vluzrmos/lumen-socketio)[ RSS](/packages/vluzrmos-lumen-socketio/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (3)Versions (11)Used By (0)

Lumen + Socket.io e Redis Broadcasting
--------------------------------------

[](#lumen--socketio-e-redis-broadcasting)

[![Latest Stable Version](https://camo.githubusercontent.com/2d270f1855085756d3b498b1042b4fe565927a4dd599bb34024ccfe5de591750/68747470733a2f2f706f7365722e707567782e6f72672f766c757a726d6f732f6c756d656e2d736f636b6574696f2f762f737461626c65)](https://packagist.org/packages/vluzrmos/lumen-socketio) [![Total Downloads](https://camo.githubusercontent.com/47c8f91ca6cfa6de1c73d831e7655dd6b93e8a58bb82b51c352d7e7636d47ef6/68747470733a2f2f706f7365722e707567782e6f72672f766c757a726d6f732f6c756d656e2d736f636b6574696f2f646f776e6c6f616473)](https://packagist.org/packages/vluzrmos/lumen-socketio) [![Latest Unstable Version](https://camo.githubusercontent.com/09e0c13048ec3d59edd24b69ae1728d013209b58f254474d447958c4b0938111/68747470733a2f2f706f7365722e707567782e6f72672f766c757a726d6f732f6c756d656e2d736f636b6574696f2f762f756e737461626c65)](https://packagist.org/packages/vluzrmos/lumen-socketio) [![License](https://camo.githubusercontent.com/5b15eb18e6abf49f7a3f9b8badf48b667f59a45c2c62bcd7e0d213f4b0579d2f/68747470733a2f2f706f7365722e707567782e6f72672f766c757a726d6f732f6c756d656e2d736f636b6574696f2f6c6963656e7365)](https://packagist.org/packages/vluzrmos/lumen-socketio)

THAT PACKAGE IS ABANDONED, PLEASE CONSIDER TO USE LARAVEL|LUMEN NATIVE SOLUTION:

Instalation
-----------

[](#instalation)

```
composer require vluzrmos/lumen-socketio
```

Add the Services Providers, on `bootstrap/app.php`:

```
$app->register('Vluzrmos\Socketio\SocketioServiceProvider');
```

Configuration
-------------

[](#configuration)

Install NodeJs dependencies:

```
npm install --save express http-server redis ioredis socket.io
```

Copy the file `vendor/vluzrmos/lumen-socketio/Vluzrmos/Socketio/socket.js` to your project root.

> Modify it whatever you want, see the code: [socket.js](https://github.com/vluzrmos/lumen-socketio/blob/master/src/Vluzrmos/Socketio/socket.js)

> Obs.: Remember to install a [Redis Server](http://redis.io)

On your view, you have to use [socket.io.js](http://socket.io/download/)

```

     Lumen Socket.IO

        var socket = io('http://localhost:8080'); //Some host and port configured in socket.js

        socket.on('channel:awesome-event', function (data) {
            console.log(data);
        });

```

Usage
-----

[](#usage)

Run your socket.io server:

```
# that socket.js file is in your project root
node socket.js
```

On your Lumen App:

```
$app->get('/publish', function() {
    publish('channel', 'awesome-event', 'An message');
    publish('channel', 'awesome-event', ['message' => 'An message', 'user' => \App\User::first()]);
});

//or, in your controller or some else method (using Dependency Injection)

public function publishSomethingAwesome(\Vluzrmos\Socketio\Contracts\Broadcast $broadcast){
    $broadcast->publish('channel', 'awesome-event', 'An message');

    // or just use the helper without inject \Vluzrmos\Socketio\Contracts\Broadcast

    publish('channel', 'awesome-event', 'An message');
}
```

And finish, run your lumen app:

```
php artisan serve
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~39 days

Recently: every ~87 days

Total

10

Last Release

3679d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/450848?v=4)[Vagner Luz do Carmo](/maintainers/vluzrmos)[@vluzrmos](https://github.com/vluzrmos)

---

Top Contributors

[![vluzrmos](https://avatars.githubusercontent.com/u/450848?v=4)](https://github.com/vluzrmos "vluzrmos (26 commits)")

---

Tags

laravellumenWebSocketsSocket.ioBroadcasting

### Embed Badge

![Health badge](/badges/vluzrmos-lumen-socketio/health.svg)

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

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[coreproc/nova-echo

Adds Laravel Echo with your broadcast configuration to your Laravel Nova app

1996.9k2](/packages/coreproc-nova-echo)

PHPackages © 2026

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