PHP code example of micromus / kafka-bus-laravel
1. Go to this page and download the library: Download micromus/kafka-bus-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/ */
micromus / kafka-bus-laravel example snippets
use Micromus\KafkaBus\Interfaces\Bus\BusInterface;
use Micromus\KafkaBus\Testing\Messages\ProducerMessageFaker;
public function execute(BusInterface $bus): void
{
$bus->publish(new ProducerMessageFaker());
}