Drop-in for Laravel
Speaks the Pusher protocol, so the stock pusher broadcaster and Laravel Echo work unchanged. Repoint host and port โ done.
A lightweight, Pusher-compatible WebSocket server. Point Laravel Echo at your own machine โ no code changes, no per-message bills, zero required dependencies.
Why Surge
Surge keeps everything you like about hosted realtime โ Laravel Echo, private and presence channels, broadcast() โ and moves it onto infrastructure you control.
| ย | Pusher (hosted) | Laravel Reverb | Surge |
|---|---|---|---|
| Self-hosted | No | Yes | Yes |
| Works with Laravel Echo unchanged | Yes | Yes | Yes |
| Required dependencies to start | Account | PHP + ext | None |
| Per-message pricing | Yes | No | No |
| Multi-core runtime | n/a | No | Experimental |
How it feels
composer require nsd7/surge โ the service provider auto-registers.
Set the host and port in your broadcasting and Echo config. No code changes.
php artisan surge:serve, then broadcast() as you always have.
Start with the lite runtime โ the supported default โ and reach for Redis scaling when you grow.
composer require nsd7/surge