2017 © Pedro Peláez
 

library laravel-queue-kafka

Kafka driver for Laravel Queue

image

koo/laravel-queue-kafka

Kafka driver for Laravel Queue

  • Friday, November 10, 2017
  • by ElaineKoo
  • Repository
  • 0 Watchers
  • 0 Stars
  • 4 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Kafka Queue driver for Laravel

Latest Stable Version Build Status Total Downloads StyleCI Software License, (*1)

Inspired By

Installation

  1. Install librdkafka c library, (*2)

    $ cd /tmp
    $ mkdir librdkafka
    $ cd librdkafka
    $ git clone https://github.com/edenhill/librdkafka.git .
    $ ./configure
    $ make
    $ make install
    
  2. Install the php-rdkafka PECL extension, (*3)

    $ pecl install rdkafka
    
  3. Add the following to your php.ini file to enable the php-rdkafka extension extension=rdkafka.so, (*4)

  4. Install this package via composer using:, (*5)

    composer require koo/laravel-queue-kafka, (*6)

  5. Add LaravelQueueKafkaServiceProvider to providers array in config/app.php:, (*7)

    Koo\LaravelQueueKafka\LaravelQueueKafkaServiceProvider::class,, (*8)

    If you are using Lumen, put this in bootstrap/app.php, (*9)

    $app->register(Koo\LaravelQueueKafka\LumenQueueKafkaServiceProvider::class);, (*10)

  6. Add these properties to .env with proper values:, (*11)

    QUEUE_DRIVER=kafka

Usage

Once you completed the configuration you can use Laravel Queue API. If you used other queue drivers you do not need to change anything else. If you do not know how to use Queue API, please refer to the official Laravel documentation: http://laravel.com/docs/queues, (*12)

Testing

Run the tests with:, (*13)

bash vendor/bin/phpunit, (*14)

Acknowledgement

This library is inspired by laravel-queue-rabbitmq by vyuldashev. And the Kafka implementations by Superbalist be sure to check those out., (*15)

Contribution

You can contribute to this package by discovering bugs and opening issues. Please, add to which version of package you create pull request or issue., (*16)

Supported versions of Laravel

Tested on: [5.5], (*17)

The Versions

10/11 2017

dev-master

9999999-dev

Kafka driver for Laravel Queue

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elaine Koo

10/11 2017

v0.2.3

0.2.3.0

Kafka driver for Laravel Queue

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elaine Koo

10/11 2017

dev-develop

dev-develop

Kafka driver for Laravel Queue

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elaine Koo

10/11 2017

v0.2.1

0.2.1.0

Kafka driver for Laravel Queue

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elaine Koo

10/11 2017

v0.2.2

0.2.2.0

Kafka driver for Laravel Queue

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elaine Koo

09/11 2017

0.2.0

0.2.0.0

Kafka driver for Laravel Queue

  Sources   Download

MIT

The Requires

 

The Development Requires

by Elaine Koo