PHP code example of panelis-php / broadcast
1. Go to this page and download the library: Download panelis-php/broadcast 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/ */
panelis-php / broadcast example snippets
use Panelis\Broadcast\Enums\BroadcastChannel;
// Subscribe / unsubscribe from a given channel
broadcast_subscribe(BroadcastChannel::Mail, $user);
broadcast_unsubscribe(BroadcastChannel::Mail, $user);
// Check subscription status
broadcast_is_subscribed(BroadcastChannel::Mail, $user); // bool
Schedule::command('broadcast:send-scheduled')->everyMinute();
bash
composer