https://github.com/siberfx/kafka-queue
Apache Kafka Queue Service
https://github.com/siberfx/kafka-queue
apache kafka laravel microservice microservice-with-laravel
Last synced: 8 months ago
JSON representation
Apache Kafka Queue Service
- Host: GitHub
- URL: https://github.com/siberfx/kafka-queue
- Owner: siberfx
- Created: 2024-10-20T18:16:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-20T18:21:07.000Z (over 1 year ago)
- Last Synced: 2024-11-20T21:57:00.296Z (over 1 year ago)
- Topics: apache, kafka, laravel, microservice, microservice-with-laravel
- Language: PHP
- Homepage: https://siberfx.com
- Size: 320 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##
Apache Kafka Queue Service for Laravel 10.x 11.x
## Required before starting
You should have account for deployment in Google Cloud (https://cloud.google.com)
create new project and select from marketplace "apache kafka@ on confluent cloud"
and set up for your requirements.
- from Confluent.cloud you should have CLI installation for your server where you will use the kafka
```bash
curl -L --http1.1 https://cnfl.io/ccloud-cli | sh -s -- -b /usr/local/bin
```


and at least if you prefer to run under docker, be sure that you have the kafka extension installed and enabled so an example image below;

after you follow all the steps and ready to use the package, follow the steps below;
## Installation
You can install the package via composer:
```bash
composer require siberfx/apache-kafka
```
## Usage
``` php
// config/kafka-config.php file content, you can modify it by your own settings.
return [
'queue_name' => 'kafka',
'bootstrap_servers' => env('BOOTSTRAP_SERVER', ''),
'security_protocol' => env('SECURITY_PROTOCOL', ''),
'sasl_mechanisms' => env('SASL_MECHANISM', ''),
'sasl_username' => env('SASL_USERNAME', ''),
'group_id' => env('GROUP_ID', ''),
];
```
### Publish files
``` bash
php artisan vendor:publish --provider="Siberfx\ApacheKafka\KafkaServiceProvider"
```
### required Kafka Queue Service changes on your app
You can override in which table are located your `"lat, lng"` fields and even the model you want to create the fields
with the help of `config/kafka-config.php` file and `table_name` field if its set already
```
### Security
If you discover any security related issues, please email info@siberfx.com instead of using the issue tracker.
## Credits
- [Selim Gormus](https://github.com/siberfx)