/laravel-10-kafka-example

An example of how to use laravel's kafka package including kafka-connect and schema-registry, mysql binlog

Primary LanguagePHP

Laravel 10 with Kafka, Kafka UI

Laravel with kafka, kafka-ui, kafka-connect, schema-registry.

Setup & start

1. Setup Docker

The first, install Docker and Docker Compose:

2. Clone source code

Clone this project to your server or local machine.

3. Make config file

Run below command to make config file from sample file:

cp .env.example .env

4. Build & start application

Run following command to build & start your application

docker-compose up

Run in background

docker-compose up -d

5. Install packages

composer install

Executes tests

php artisan test

Executes check code quality

./vendor/bin/rector process

Useful link

Kafka Ui

Test Kafka Producer

  php artisan kafka:test-producer