PHP code example of moura137 / laravel-elephantio

1. Go to this page and download the library: Download moura137/laravel-elephantio 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/ */

    

moura137 / laravel-elephantio example snippets


'providers' => [
    ...
    Moura137\LaravelElephant\ElephantServiceProvider::class,

],

'aliases' => array(

    ...
    'Elephant'    => Moura137\LaravelElephant\ElephantFacade::class,

),

Elephant::emit('eventMsg', array('foo' => 'bar'));