PHP code example of lukaszaleckas / laravel-kafka-queue
1. Go to this page and download the library: Download lukaszaleckas/laravel-kafka-queue 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/ */
lukaszaleckas / laravel-kafka-queue example snippets
LaravelKafka\KafkaQueueServiceProvider::class
'kafka' => [
'driver' => 'kafka',
'host' => 'your_host_here',
'port' => 9092,
'queue' => 'default_queue_name',
'heartbeat' => 5 * 1000, //Heartbeat in milliseconds
'group_name' => 'group_name',
'producer_timeout' => 3 * 1000, //Producer timeout in milliseconds
'consumer_timeout' => 3 * 1000, //Consumer timeout in milliseconds
]