PHPackages                             naturalweb/laravel-socketcluster - 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. naturalweb/laravel-socketcluster

Abandoned → [soleon/sc-php](/?search=soleon%2Fsc-php)Library[API Development](/categories/api)

naturalweb/laravel-socketcluster
================================

SocketCluster.io library Broadcaster for Laravel.

1.0.0(10y ago)7143MITPHP

Since Sep 9Pushed 9y ago2 watchersCompare

[ Source](https://github.com/naturalweb/laravel-socketcluster)[ Packagist](https://packagist.org/packages/naturalweb/laravel-socketcluster)[ Docs](https://github.com/naturalweb/laravel-socketcluster)[ RSS](/packages/naturalweb-laravel-socketcluster/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (2)Used By (0)

Laravel SocketCluster
---------------------

[](#laravel-socketcluster)

**WARNING: This package is no longer maintained. Use [soleon/sc-php](https://github.com/soleon-leiloes/sc-php) instead.**

[![Build Status](https://camo.githubusercontent.com/8efb60fdb0baf1c302319b808bb20d2f41ccdc1f88b2902b0be20f94b188dba5/68747470733a2f2f7472617669732d63692e6f72672f6e61747572616c7765622f6c61726176656c2d736f636b6574636c75737465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/naturalweb/laravel-socketcluster)[![Coverage Status](https://camo.githubusercontent.com/48a84b3586f4da1e91a98ce250fe7738481c33bfc07fd87bf55e6b6f57e62044/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6e61747572616c7765622f6c61726176656c2d736f636b6574636c75737465722f62616467652e706e673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/naturalweb/laravel-socketcluster?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/5ea1fc5eba83cc98b574a966ba26874dc9fade4c8cea19ebbff9fd49d11304ca/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6e61747572616c7765622f6c61726176656c2d736f636b6574636c75737465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/naturalweb/laravel-socketcluster/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/5c49bd73b898af2a101ec74d8ee0a0c4127306fad95a2f6f3ad47ed3c61df445/68747470733a2f2f706f7365722e707567782e6f72672f6e61747572616c7765622f6c61726176656c2d736f636b6574636c75737465722f762f737461626c652e706e67)](https://packagist.org/packages/naturalweb/laravel-socketcluster)[![License](https://camo.githubusercontent.com/90e09414987ff8309e8dc84d8212b9755bd68a59457fd9f1fbc30e46dbac665c/68747470733a2f2f706f7365722e707567782e6f72672f6e61747572616c7765622f6c61726176656c2d736f636b6574636c75737465722f6c6963656e73652e706e67)](http://opensource.org/licenses/MIT)

[SocketCluster.io](http://socketcluster.io/) library broadcaster for Laravel.

Requirements
------------

[](#requirements)

- laravel &gt;= 5.1
- textalk/websocket 1.0.\* (retrieved automatically via Composer)

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

[](#installation)

Using Composer:

```
composer require naturalweb/laravel-socketcluster
```

In your config/app.php file add the following provider to your service providers array:

```
'providers' => [
    ...
    LaravelSocketCluster\SCBroadcastServiceProvider::class,
    ...
]
```

In your config/broadcasting.php file set the default driver to 'socketcluster' and add the connection configuration like so:

```
'default' => 'socketcluster',

'connections' => [
    ...
    'socketcluster' => [
      'driver' => 'socketcluster',
      'secure' => env('BROADCAST_SOCKETCLUSTER_SECURE', false),
      'host'   => env('BROADCAST_SOCKETCLUSTER_HOST', '127.0.0.1'),
      'port'   => env('BROADCAST_SOCKETCLUSTER_PORT', '3000'),
      'path'   => env('BROADCAST_SOCKETCLUSTER_PATH', '/socketcluster/'),
    ],
    ...
]
```

Usage
-----

[](#usage)

Add a custom broadcast event to your application like so:

```
namespace App\Events;

use App\Events\Event;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class PublishToSocketClusterEvent implements ShouldBroadcast
{
    use SerializesModels;

    public $message;

    public function __construct($message)
    {
        $this->message = $message;
    }

    public function broadcastOn()
    {
        return [''];
    }
}
```

Now to publish in your application simply fire the event:

```
event(new App\Events\PublishToSocketClusterEvent('Test publish!!'));
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

3950d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fda29d020b7e1eba9a4cdfb106400d04801993967e3fca75aa659c6e493ddd6?d=identicon)[naturalweb](/maintainers/naturalweb)

---

Top Contributors

[![moura137](https://avatars.githubusercontent.com/u/1171111?v=4)](https://github.com/moura137 "moura137 (10 commits)")

---

Tags

laravelBroadcastingsocketcluster

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/naturalweb-laravel-socketcluster/health.svg)

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

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M984](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M134](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M63](/packages/knuckleswtf-scribe)[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k9.5M89](/packages/openai-php-laravel)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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