PHP code example of aztech / event-bus-extra-redis

1. Go to this page and download the library: Download aztech/event-bus-extra-redis 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/ */

    

aztech / event-bus-extra-redis example snippets




Aztech\Events\Events;
use \Aztech\Events\Bus\Plugins\Redis\Redis;

Redis::loadPlugin('redis');

$publisher = Events::createPublisher('redis');
$processor = Events::createProcessor('redis');
// ...



Aztech\Events\Events;
use \Aztech\Events\Bus\Plugins\Redis\Redis;

Redis::loadPlugin('redis');

$publisher = Events::createPublisher('redis', [ 'host' => '192.168.1.1', 'port' => 6379);
// ...