PHP code example of fashionphile / laravel-kafka
1. Go to this page and download the library: Download fashionphile/laravel-kafka 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/ */
fashionphile / laravel-kafka example snippets
regexp
$userCreatedObject = (new UserCreatedObject())
->setUuid($uuid)
->setFirstName($firstName)
->setLastName($lastName)
->setEmail($email)
->setPhone($phone)
->setCreatedTimestamp($timestamp);
FashionphileKafka::sendUserCreatedEvent($usetCreatedObject);