marko / broadcasting-pusher
Pusher-protocol broadcasting driver for Marko Framework (Pusher, Soketi, Laravel Reverb)
Package info
github.com/marko-php/marko-broadcasting-pusher
Type:marko-module
pkg:composer/marko/broadcasting-pusher
Requires
- php: ^8.5
- marko/authentication: 0.11.0
- marko/broadcasting: 0.11.0
- marko/clock: 0.11.0
- marko/config: 0.11.0
- marko/core: 0.11.0
- marko/http: 0.11.0
- marko/routing: 0.11.0
Requires (Dev)
- marko/testing: 0.11.0
- pestphp/pest: ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-06 15:40:24 UTC
README
Pusher-protocol broadcasting driver --- realtime events through hosted Pusher, Soketi, or Laravel Reverb.
Installation
composer require marko/broadcasting-pusher
This installs marko/broadcasting. You also need an HTTP client driver such as marko/http-guzzle.
Quick Example
use Marko\Broadcasting\PresenceChannel; use Marko\Broadcasting\PrivateChannel; // BroadcasterInterface is bound to PusherBroadcaster $broadcaster->broadcast('shows.42', 'seat.sold', ['seat' => 'A1']); $broadcaster->broadcast(new PrivateChannel('orders.7'), 'order.shipped', ['id' => 7]); // sent as private-orders.7 $broadcaster->broadcast(new PresenceChannel('rooms.3'), 'message.posted', ['text' => 'Hi']); // sent as presence-rooms.3
Private and presence channels are authorized at POST /broadcasting/auth (pusher-js / Laravel Echo authEndpoint).
Documentation
Full usage, API reference, and examples: marko/broadcasting-pusher