Looking to hire Laravel developers? Try LaraJobs

laravel-kafka maintained by fashionphile

Description
Service Provider wrapper for laravel-kafka package for use in Fashionphile Laravel projects.
Author
Last update
2022/04/21 13:39 (dev-master)
License
Links
Downloads
12

Comments
comments powered by Disqus

laravel-kafka

A Fashionphile-specific package that utilized laravel-kafka package under the hood to produce Kafka events.

Installation

Note - the composer require command will work only when package is added to Packagist.

  • composer require fashionphile/laravel-kafka
  • php artisan vendor:publish --tag=fashionphile-kafka-config

Usage

Make sure you configure your Kafka broker inside your .env.

$userCreatedObject = (new UserCreatedObject())
    ->setUuid($uuid)
    ->setFirstName($firstName)
    ->setLastName($lastName)
    ->setEmail($email)
    ->setPhone($phone)
    ->setCreatedTimestamp($timestamp);

FashionphileKafka::sendUserCreatedEvent($usetCreatedObject);