PHPackages                             xsites/laravel-socket.io - 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. xsites/laravel-socket.io

ActiveLibrary[API Development](/categories/api)

xsites/laravel-socket.io
========================

Laravel Socket.io broadcaster

v0.1.0(10y ago)91.4k2MITPHPPHP &gt;=5.6.4

Since May 2Pushed 10y ago4 watchersCompare

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

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

Laravel Socket.io Broadcaster
=============================

[](#laravel-socketio-broadcaster)

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

[](#installation)

Pull this package in through Composer.

```
    composer require xsites/laravel-socket.io
```

### Laravel 5.\* Integration

[](#laravel-5-integration)

Add the service provider to your `config/app.php` file:

```
    'providers'  => array(

    //...
    Xsites\LaravelSocketIO\Providers\SocketIOServiceProvider::class,

),
```

### Configuration

[](#configuration)

Add the broadcaster to your `config/broadcasting.php` file:

```
    // Set here the new broadcast connection
    'default' => 'socket-io',

    //...

    'connections' => [

        // Add additional connection for socket.io broadcaster
        'socket-io' => [
            'driver' => 'socket.io',
            'redis' => [
                //set the redis connection
                'connection' => 'default',
            ],
        ],
        //...

    ],
```

Usage
-----

[](#usage)

See the official documentation

### Example

[](#example)

```

    class Test extends Event implements ShouldBroadcast
    {
        /**
         * @var array
         */
        public $data;

        /**
         * Create a new event instance.
         *
         * @param mixed $data
         */
        public function __construct($data)
        {
            $this->data = $data;
        }

        /**
         * Get the channels the event should be broadcast on.
         *
         * @return array
         */
        public function broadcastOn()
        {
            return ['test-channel-name'];
        }
    }

    ...
    //In your BLL
    Event::fire(new Test(['param1' => 'value'1]));
    //
    Event::fire(new Test(123));

```

Contact
-------

[](#contact)

Anton Pavlov

- Email:

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

3659d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ee9982454bccde29564322f7a8a43a943c7e97cfeb82982c0cbdd13910d12f5?d=identicon)[xsites](/maintainers/xsites)

---

Tags

laravelSocket.iolaravel-socket.io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/xsites-laravel-socketio/health.svg)

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

###  Alternatives

[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

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

3624.1M28](/packages/mollie-laravel-mollie)[api-ecosystem-for-laravel/dingo-api

A RESTful API package for the Laravel and Lumen frameworks.

3121.5M10](/packages/api-ecosystem-for-laravel-dingo-api)[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[kirschbaum-development/laravel-openapi-validator

Automatic OpenAPI validation for Laravel HTTP tests

581.1M5](/packages/kirschbaum-development-laravel-openapi-validator)

PHPackages © 2026

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