Download the PHP package onemena/laravel-aliyun-kafka without Composer
On this page you can find all versions of the php package onemena/laravel-aliyun-kafka. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download onemena/laravel-aliyun-kafka
More information about onemena/laravel-aliyun-kafka
Files in onemena/laravel-aliyun-kafka
Download onemena/laravel-aliyun-kafka
More information about onemena/laravel-aliyun-kafka
Files in onemena/laravel-aliyun-kafka
Vendor onemena
Package laravel-aliyun-kafka
Short Description aliyun kafka for laravel5, based on php-rdkafka
License MIT
Package laravel-aliyun-kafka
Short Description aliyun kafka for laravel5, based on php-rdkafka
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-aliyun-kafka
安装 librdkafka
git clone https://github.com/edenhill/librdkafka.git
cd librdkafka && ./configure && make && make install
安装 php-rdkafka
pecl install rdkafka
add extension=rdkafka.so to your php.ini
安装 laravel-aliyun-kafka
composer require onemena/laravel-aliyun-kafka:dev-master
// config/app.php
\LaravelAliYunKafka\LaravelKafkaServiceProvider::class
// config/queue.php
'kafka' => [
'driver' => 'kafka',
'sasl'=>true,
'sasl_plain_username' => env('KAFKA_SASL_PLAIN_USERNAME', 'YOUR AK'), // 阿里云 ak
'sasl_plain_password' => env('KAFKA_SASL_PLAIN_PASSWORD', 'YOUR AC'),,// 阿里云 ac后10位
'bootstrap_servers' => "kafka-ons-internet.aliyun.com:8080", // broker
'ssl.ca.location' => storage_path('config/ca-cert'), // cr 证书 下载 https://help.aliyun.com/document_detail/52376.html
'message.send.max.retries' => 5,
'queue' => env('KAFKA_TOPIC', 'YOUR TOPIC'), // 这里填入你在阿里云控制台配置的topic
'consumer_id' => env('KAFKA_CONSUMER_ID', 'YOU CONSUMER ID'), // 消费者ID,你在阿里云控制台配置的消费之ID
'log_level' => LOG_DEBUG // 日志等级
],
使用方法:
php artisan queue:work kafka --tries=3
All versions of laravel-aliyun-kafka with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.0
illuminate/support Version ~5.3|~5.4|~5.5
illuminate/queue Version ~5.3|~5.4|~5.5
illuminate/support Version ~5.3|~5.4|~5.5
illuminate/queue Version ~5.3|~5.4|~5.5
The package onemena/laravel-aliyun-kafka contains the following files
Loading the files please wait ....