koo/laravel-queue-kafka 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

koo/laravel-queue-kafka

Composer 安装命令:

composer require koo/laravel-queue-kafka

包简介

Kafka driver for Laravel Queue

README 文档

README

Latest Stable Version Build Status Total Downloads StyleCI Software License

Inspired By

Installation

  1. Install librdkafka c library

    $ 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

    $ pecl install rdkafka
  3. Add the following to your php.ini file to enable the php-rdkafka extension extension=rdkafka.so

  4. Install this package via composer using:

    composer require koo/laravel-queue-kafka

  5. Add LaravelQueueKafkaServiceProvider to providers array in config/app.php:

    Koo\LaravelQueueKafka\LaravelQueueKafkaServiceProvider::class,

    If you are using Lumen, put this in bootstrap/app.php

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

  6. Add these properties to .env with proper values:

     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

Testing

Run the tests with:

vendor/bin/phpunit

Acknowledgement

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

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.

Supported versions of Laravel

Tested on: [5.5]

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 1
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-11-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固