PHPackages                             sammy-boy/realtime-core - 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. sammy-boy/realtime-core

ActiveLibrary[API Development](/categories/api)

sammy-boy/realtime-core
=======================

Reusable realtime broadcasting infrastructure for Laravel microservices

v1.0.2(1mo ago)0902MITPHPPHP ^8.4

Since Feb 6Pushed 1mo agoCompare

[ Source](https://github.com/sammy-boy/realtime-core)[ Packagist](https://packagist.org/packages/sammy-boy/realtime-core)[ Docs](https://github.com/sammy-boy/realtime-core)[ RSS](/packages/sammy-boy-realtime-core/feed)WikiDiscussions main Synced 2w ago

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

README — `sammy-boy/realtime-core`
==================================

[](#readme--sammy-boyrealtime-core)

Repository:

---

```
# SammyBoy Realtime Core

Lightweight real-time broadcasting infrastructure for Laravel microservices.

Uses Redis Pub/Sub to communicate with WebSocket servers.

Designed to integrate seamlessly with SammyBoy EventBus Core.

---

## Features

- Redis-based broadcasting
- Microservice-safe channel namespacing
- Minimal dependencies
- Compatible with Laravel Echo
- Production-ready logging
- Failure-safe publishing

---

## Installation

```bash
composer require sammy-boy/realtime-core
```

---

Broadcasting Events
-------------------

[](#broadcasting-events)

```
use SammyBoy\Realtime\WebSocketBroadcaster;

$broadcaster->broadcast(
    eventName: 'tenant.registration.completed',
    data: [
        'auth_user_id' => 12,
        'status' => 'success',
    ],
    channel: 'job.1234'
);
```

Published to Redis channel:

```
laravel_database_job.1234

```

---

Expected WebSocket Setup
------------------------

[](#expected-websocket-setup)

Your WebSocket server should:

- Listen to Redis channels
- Forward payloads to connected clients
- Support channel-based subscription

Example payload:

```
{
  "event": "tenant.registration.completed",
  "data": {
    "auth_user_id": 12,
    "status": "success"
  }
}
```

---

Architecture Philosophy
-----------------------

[](#architecture-philosophy)

Simple. Focused. Infrastructure-only.

No opinion about:

- Frontend framework
- WebSocket server implementation
- Channel naming convention

Only provides:

- Safe publishing
- Structured payload
- Logging

---

License
-------

[](#license)

MIT

---

Author
------

[](#author)

Sammy Orondo

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance90

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

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 ~73 days

Total

3

Last Release

47d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/41899105?v=4)[bug](/maintainers/sammy-boy)[@sammy-boy](https://github.com/sammy-boy)

---

Top Contributors

[![sammy-boy](https://avatars.githubusercontent.com/u/41899105?v=4)](https://github.com/sammy-boy "sammy-boy (1 commits)")

### Embed Badge

![Health badge](/badges/sammy-boy-realtime-core/health.svg)

```
[![Health](https://phpackages.com/badges/sammy-boy-realtime-core/health.svg)](https://phpackages.com/packages/sammy-boy-realtime-core)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M354](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M323](/packages/laravel-ai)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818355.4k3](/packages/defstudio-telegraph)[illuminate/filesystem

The Illuminate Filesystem package.

16166.4M3.5k](/packages/illuminate-filesystem)[moonshine/moonshine

Laravel administration panel

1.3k268.2k89](/packages/moonshine-moonshine)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

731189.9k16](/packages/tallstackui-tallstackui)

PHPackages © 2026

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