PHPackages                             kinetis/broadcasting - 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. kinetis/broadcasting

ActiveLibrary

kinetis/broadcasting
====================

Real-time broadcasting for Kinetis over the Pusher Channels protocol (Soketi, Laravel Reverb, or Pusher itself) - attribute-based private/presence channel authorization and a non-blocking driver over kinetis/revolt-http-client.

v1.1.1(yesterday)01↑2900%MITPHPPHP ^8.4

Since Aug 24Pushed yesterdayCompare

[ Source](https://github.com/kinetis-dev/broadcasting)[ Packagist](https://packagist.org/packages/kinetis/broadcasting)[ RSS](/packages/kinetis-broadcasting/feed)WikiDiscussions main Synced today

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

 [![Kinetis](logo.svg)](logo.svg)

 **kinetis/broadcasting**
 **Real-time broadcasting for Kinetis over the Pusher Channels protocol**

 [![Packagist Version](https://camo.githubusercontent.com/165a86e979c47b4e7c618fb2dc8515f3502041fbbf0b5bcc79009af86c23812a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b696e657469732f62726f616463617374696e673f6c6162656c3d76657273696f6e)](https://packagist.org/packages/kinetis/broadcasting) [![Packagist Downloads](https://camo.githubusercontent.com/35d09d26677ada1429eaa95ff9df95f27324ad03d342fdf31531eebe2e5e3ab2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b696e657469732f62726f616463617374696e67)](https://packagist.org/packages/kinetis/broadcasting) [![PHP Version](https://camo.githubusercontent.com/df52eec40865e8f5091a370edef2c5a0fdd3e3f5ea31379462858c0634c25c6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6b696e657469732f62726f616463617374696e67)](https://packagist.org/packages/kinetis/broadcasting) [![License](https://camo.githubusercontent.com/37400512def5e2459846515d40eda295ee174a69483f90b71751b4af8d8dd567/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b696e657469732f62726f616463617374696e67)](https://packagist.org/packages/kinetis/broadcasting) [![CI](https://github.com/kinetis-dev/kinetis/actions/workflows/ci.yml/badge.svg)](https://github.com/kinetis-dev/kinetis/actions/workflows/ci.yml)

---

One driver, speaking the wire protocol Soketi, Laravel Reverb, and Pusher's own hosted service all implement identically — non-blocking, over `kinetis/revolt-http-client`.

```
use Kinetis\Broadcasting\Broadcaster;

final readonly class OrderUpdated implements \Kinetis\Broadcasting\ShouldBroadcast
{
    public function __construct(private string $orderId, private string $status) {}

    public function broadcastOn(): array { return ["private-orders.{$this->orderId}"]; }
    public function broadcastAs(): string { return 'order.updated'; }
    public function broadcastWith(): array { return ['status' => $this->status]; }
}

// From a controller or a #[Listener] method, both constructor-inject Broadcaster:
$broadcaster->event(new OrderUpdated($orderId, 'shipped'));
```

A private or presence channel authorizes through one attribute:

```
use Kinetis\Broadcasting\Attributes\BroadcastChannel;
use Kinetis\Http\CurrentUserInterface;

final class OrderChannels
{
    #[BroadcastChannel('orders.{orderId}')]
    public function authorize(CurrentUserInterface $user, string $orderId): bool
    {
        return $this->orders->belongsTo($orderId, $user->id());
    }
}
```

`POST /broadcasting/auth` — the endpoint a Pusher-protocol client library calls automatically before subscribing — is discovered and wired with zero registration.

Provides
--------

[](#provides)

Installing this package auto-registers, via `extra.kinetis`:

- **A container binding** for `Kinetis\Broadcasting\BroadcasterInterface`, selected by `BROADCAST_DRIVER` (`"null"`, the default — a silent no-op; or `"pusher"`, requiring `BROADCAST_APP_ID`/`BROADCAST_KEY`/ `BROADCAST_SECRET`). Validated and built at worker boot, not lazily — a misconfigured `BROADCAST_DRIVER=pusher` fails before the first request, not on whichever one happens to broadcast first.
- **`Kinetis\Broadcasting\BroadcastChannelRegistry`**, discovering every `#[BroadcastChannel]`-attributed method anywhere under your own PSR-4 roots.
- **`POST /broadcasting/auth`**, a real Kinetis route (`Kinetis\Broadcasting\Http\BroadcastAuthController`), discovered the same way any `Kinetis\Http\Routing\RouteDiscovery`-found controller is.

Nothing else — `Kinetis\Broadcasting\Broadcaster` (the service your own code constructor-injects) autowires from the bound `BroadcasterInterface` with no binding of its own.

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

[](#configuration)

```
BROADCAST_DRIVER=pusher
BROADCAST_APP_ID=your-app-id
BROADCAST_KEY=your-key
BROADCAST_SECRET=your-secret
BROADCAST_HOST=soketi.example.com
BROADCAST_PORT=6001
BROADCAST_TLS=false

```

KeyDefaultPurpose`BROADCAST_DRIVER``null``null` or `pusher`.`BROADCAST_APP_ID`*(required for `pusher`)*The app id both sides agree on.`BROADCAST_KEY`*(required for `pusher`)*The public key.`BROADCAST_SECRET`*(required for `pusher`)*Never sent to a browser.`BROADCAST_HOST``api.pusherapp.com`The broker's host.`BROADCAST_PORT``443`The broker's port.`BROADCAST_TLS``true`Whether to connect over TLS.Scoped — `BROADCAST_KEY` + `notifications` → `BROADCAST_NOTIFICATIONS_KEY`. Full reference: [kinetis.dev/docs/config.html](https://kinetis.dev/docs/config.html).

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

[](#installation)

```
composer require kinetis/broadcasting
```

Requires PHP 8.4+, `kinetis/framework`, and `kinetis/revolt-http-client`. Full documentation: [kinetis.dev/docs/broadcasting.html](https://kinetis.dev/docs/broadcasting.html).

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

1d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17613001?v=4)[aln-1](/maintainers/aln-1)[@aln-1](https://github.com/aln-1)

---

Top Contributors

[![aln-1](https://avatars.githubusercontent.com/u/17613001?v=4)](https://github.com/aln-1 "aln-1 (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kinetis-broadcasting/health.svg)

```
[![Health](https://phpackages.com/badges/kinetis-broadcasting/health.svg)](https://phpackages.com/packages/kinetis-broadcasting)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k555.0M2.8k](/packages/aws-aws-sdk-php)[symfony/symfony

The Symfony PHP framework

31.4k87.4M2.2k](/packages/symfony-symfony)[guzzlehttp/psr7

PSR-7 message implementation that also provides common utility methods

7.9k1.1B4.5k](/packages/guzzlehttp-psr7)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k56](/packages/neuron-core-neuron-ai)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k21](/packages/tempest-framework)[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

36826.2k2](/packages/telnyx-telnyx-php)

PHPackages © 2026

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