Download the PHP package darknautica/relay-cloud-laravel without Composer
On this page you can find all versions of the php package darknautica/relay-cloud-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download darknautica/relay-cloud-laravel
More information about darknautica/relay-cloud-laravel
Files in darknautica/relay-cloud-laravel
Package relay-cloud-laravel
Short Description Official Laravel package for Relay Cloud — zero-config WebSocket broadcasting
License MIT
Informations about the package relay-cloud-laravel
Relay Cloud for Laravel
Zero-config WebSocket broadcasting for Laravel, powered by Relay Cloud.
Installation
Add your credentials to .env:
That's it. Broadcasting works. No manual editing of config/broadcasting.php required.
Find your credentials at relaycloud.dev under your project's settings.
Usage
Verify your setup
This prints your connection details and the Laravel Echo JavaScript snippet you need for your frontend.
Laravel Echo setup
Add this to resources/js/bootstrap.js:
Add to your .env:
Broadcasting events
Use Laravel broadcasting as normal. All standard features work out of the box:
Self-hosted Relay
To point at your own Relay server instead of Relay Cloud, set these additional environment variables:
For local development without SSL:
Publishing the config
If you need to customize the configuration beyond environment variables:
This publishes config/relay.php to your application's config directory.
Local Development
To test the package in a local Laravel app before publishing to Packagist:
-
In your Laravel app's
composer.json, add: - Then require the package:
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
License
MIT. See LICENSE for details.
Links
All versions of relay-cloud-laravel with dependencies
illuminate/broadcasting Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
pusher/pusher-php-server Version ^7.2