Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Latest commit

 

History

History
47 lines (34 loc) · 760 Bytes

README.md

File metadata and controls

47 lines (34 loc) · 760 Bytes

HauptmediaKafkaBundle

Installation

Step 1: Download Kafka-Bundle using composer

$ composer require hauptmedia/kafka-bundle

Step 2: Enable the bundle in your application kernel

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Hauptmedia\Bundle\KafkaBundle\HauptmediaKafkaBundle(),
    );
}

Step 3: Setting Configuration

# app/config.yml

services:
  output_consumer_service:
    class: Hauptmedia\Bundle\KafkaBundle\Consumer\OutputConsumer
    
hauptmedia_kafka:
  topics:
    test:
      brokers:
        - hostname1
        - hostname2
        
      consumer_services:
        - output_consumer_service

Step 4: Enjoy!!!