PHP code example of auraeq / pubnub-laravel

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

    

auraeq / pubnub-laravel example snippets


'Aura\PubnubLaravel\PubnubLaravelServiceProvider',

'Pubnub'  => 'Aura\PubnubLaravel\Facades\PubnubLaravelFacade'

Pubnub::setChannel('channel');

Pubnub::publish($message[, $channel]);

Pubnub::subscribe(Closure $callback[, $channel]);

Pubnub::hereNow([$channel]);
bash
php artisan config:publish aura/pubnub-laravel