pushinbr / nimbus-broadcasting
Event broadcasting for Nimbus: PAM sockets, Pusher protocol (Pusher, Soketi, Reverb) and Redis drivers.
Requires
- php: ^8.4
- pushinbr/nimbus: ^0.8
Requires (Dev)
- phpunit/phpunit: ^11.5
- pusher/pusher-php-server: ^7.2
- pushinbr/nimbus-redis: ^0.8
Suggests
- pusher/pusher-php-server: Pusher protocol broadcasting (Pusher, Soketi, Reverb) in PusherBroadcaster.
- pushinbr/nimbus-redis: RedisBroadcaster (Laravel Echo Server style Redis channels).
- pushinbr/pam-socket: High-level event and room APIs for PAM WebSockets.
Provides
None
Conflicts
None
Replaces
None
README
Event broadcasting for Nimbus: PAM sockets, Pusher protocol (Pusher, Soketi, Reverb) and Redis drivers.
Up to Nimbus 0.7 this code was part of pushinbr/nimbus. From 0.8 the core keeps
only the base framework and the extension points; the broadcasting support lives
here, with the same namespaces, so an application only adds the package.
Start here
Install PAM first (curl -fsSL https://push-in.github.io/pam/install.sh | sh), then
add the package to a Nimbus application:
pam composer require pushinbr/nimbus-broadcasting
$broadcasts = BroadcastManager::install($app, new PamSocketBroadcaster());
The package registers BroadcastingServiceProvider through Nimbus package discovery (extra.pam.providers); with
new App(discoverPackages: false) register it with $app->provider(...).
Documentation: docs/nimbus/eventos.md.
Development
The package is developed in the push-in/pam
monorepo (packages/nimbus-broadcasting); push-in/nimbus-broadcasting is a read-only split. Its
tests share the runtime stubs and fixtures of packages/nimbus/tests:
cd packages/nimbus-broadcasting composer config repositories.monorepo '{"type": "path", "url": "../*", "options": {"symlink": true}}' composer update && composer test
License
Apache-2.0. See LICENSE.