PHP code example of qlimix / messagebus

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

    

qlimix / messagebus example snippets




use Qlimix\MessageBus\MessageBus\MiddlewareMessageBus;

$middleware = [];
$dispatcher = new FooBarDispatcher();

$messageBus = new MiddlewareMessageBus($middleware, $dispatcher);

$messageBus->handle(new Message($foo, $bar));