PHP code example of ufo-tech / kafka-messenger

1. Go to this page and download the library: Download ufo-tech/kafka-messenger 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/ */

    

ufo-tech / kafka-messenger example snippets


Ufo\KafkaMessenger\UfoKafkaMessengerBundle::class => ['all' => true],

$bus->dispatch(new OrderPlaced($orderId), [new KafkaKeyStamp($orderId)]);