PHP code example of onesk / rabbit-echo
1. Go to this page and download the library: Download onesk/rabbit-echo 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/ */
onesk / rabbit-echo example snippets
bash
composer
bash
php artisan vendor:publish --provider="Onesk\RabbitEcho\ServiceProvider"
$event = 'event name';
$channel = 'channel';
$type = 'public';
$message = 'new message';
$data = [];
app('rabbit-echo')->sendEvent($event, $channel, $type, $message, $data);