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.1(4mo ago)0768MITPHPPHP ^8.4

Since Feb 6Pushed 4mo 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 2d ago

READMEChangelogDependencies (2)Versions (3)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

40

—

FairBetter than 86% of packages

Maintenance74

Regular maintenance activity

Popularity18

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity53

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

Every ~0 days

Total

2

Last Release

148d ago

### Community

Maintainers

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

### 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

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[tallstackui/tallstackui

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

725173.0k14](/packages/tallstackui-tallstackui)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)

PHPackages © 2026

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