PHP code example of aztech / event-bus-extra-amqp
1. Go to this page and download the library: Download aztech/event-bus-extra-amqp 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-amqp example snippets
use \Aztech\Events\Bus\Events;
use \Aztech\Events\Bus\Plugins\Amqp\Amqp;
Amqp::loadPlugin();
// See options chart for actual parameters
$options = array(...);
$publisher = Events::createPublisher('amqp', $options);
$event = Events::create('category', array('property' => 'value'));
$publisher->publish($event);
// ...