PHP code example of santutu / laravel-echo-client
1. Go to this page and download the library: Download santutu/laravel-echo-client 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/ */
santutu / laravel-echo-client example snippets
php artisan vendor:publish --provider="Santutu\LaravelEchoClient\ServiceProvider"
EchoClient::getAppStatus();
EchoClient::getChannels();
EchoClient::getChannel('channalName');
EchoClient::getUsers('channalName');
bash
composer
.env
LARAVEL_ECHO_CLIENT_SERVER_HOST=your echo server host. default is laravel-echo-server(with laradock).
LARAVEL_ECHO_CLIENT_SERVER_PORT=your echo server port. default is 6001.
LARAVEL_ECHO_CLIENT_APP_ID=your echo server app id
LARAVEL_ECHO_CLIENT_AUTH_KEY=yout echo server auth key