PHP code example of chaos-ws / laravel-chaos-broadcaster

1. Go to this page and download the library: Download chaos-ws/laravel-chaos-broadcaster library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

chaos-ws / laravel-chaos-broadcaster example snippets



	'redis' => [
		'chaos' => [
		    'host' => env('CHAOS_HOST', '127.0.0.1'),
		    'password' => null,
		    'port' => env('CHAOS_PORT', 6379),
		    'database' => 1,
		],



	'chaos' => [
	    'driver' => 'chaos',
	    'connection' => 'chaos',

	    'key' => env('PUSHER_APP_KEY'),
	    'secret' => env('PUSHER_APP_SECRET'),
	    'app_id' => env('PUSHER_APP_ID'),
	    'options' => [
	        'cluster' => env('PUSHER_APP_CLUSTER'),
	        'encrypted' => true,
	        'host' => env('PUSHER_APP_HOST', '127.0.0.1'),
	        'port' => env('PUSHER_APP_PORT', '6001'),
	        'scheme' => 'http'
	    ],
	],