Skip to content

This Symfony bundle provides connectivity to the Kafka publish-subscribe messaging system

Notifications You must be signed in to change notification settings

imanalopher/php-kafka-bundle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!!!

About

This Symfony bundle provides connectivity to the Kafka publish-subscribe messaging system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%