PHPackages                             hhxsv5/laravel-kafka-logger - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. hhxsv5/laravel-kafka-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

hhxsv5/laravel-kafka-logger
===========================

The Kafka logger for Laravel.

v2.0.1(5y ago)1014.3k↓31.3%MITPHPPHP &gt;=7.1.0

Since Jul 10Pushed 5y agoCompare

[ Source](https://github.com/hhxsv5/laravel-kafka-logger)[ Packagist](https://packagist.org/packages/hhxsv5/laravel-kafka-logger)[ Docs](https://github.com/hhxsv5/laravel-kafka-logger)[ RSS](/packages/hhxsv5-laravel-kafka-logger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (6)Used By (0)

laravel-kafka-logger
====================

[](#laravel-kafka-logger)

The Kafka logger for Laravel.

[![Latest Version](https://camo.githubusercontent.com/457e783450d48712839c5ea1b8d2289d7c58b07cbddc863c3c267ea2161b963e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f6868787376352f6c61726176656c2d6b61666b612d6c6f676765722e737667)](https://github.com/hhxsv5/laravel-kafka-logger/releases)[![PHP Version](https://camo.githubusercontent.com/4713e6dbe0f80fc3649682322a682ca9899ba5dba3eb6a6c78a6777dcd004c82/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6868787376352f6c61726176656c2d6b61666b612d6c6f676765722e7376673f636f6c6f723d677265656e)](https://secure.php.net)[![Total Downloads](https://camo.githubusercontent.com/1e216216d00256ed1fa2761b9edbb5d7538e7520a63447d623c6296451d425aa/68747470733a2f2f706f7365722e707567782e6f72672f6868787376352f6c61726176656c2d6b61666b612d6c6f676765722f646f776e6c6f616473)](https://packagist.org/packages/hhxsv5/laravel-kafka-logger)[![License](https://camo.githubusercontent.com/92964679c4545f7fce8229756fd2cac99f2846952909d3695764a9084e064011/68747470733a2f2f706f7365722e707567782e6f72672f6868787376352f6c61726176656c2d6b61666b612d6c6f676765722f6c6963656e7365)](LICENSE)

Requirements
------------

[](#requirements)

DependencyRequirement[php-rdkafka](https://github.com/arnaud-lb/php-rdkafka)`>=4.0.0`Install
-------

[](#install)

1.Install `rdkafka`.

```
git clone --depth 1 https://github.com/edenhill/librdkafka.git /tmp/librdkafka && cd /tmp/librdkafka && ./configure && make -j$(nproc) && make install && rm -rf /tmp/librdkafka
pecl install rdkafka
```

2.Install `laravel-kafka-logger`.

```
# Laravel 5.x
composer require "hhxsv5/laravel-kafka-logger:~1.0.0"
# Laravel 6.x & 7.x
composer require "hhxsv5/laravel-kafka-logger:~2.0.0"
```

Get Started
-----------

[](#get-started)

1.Modify `config/logging.php`.

```
return [
    'channels' => [
        // ...
        'kafka' => Hhxsv5\LKL\KafkaLogger::getDefinition(['topic' => env('LOG_KAFKA_TOPIC', 'laravel-logs')]),
    ],
];
```

2.Modify `.env`.

```
LOG_CHANNEL=kafka
LOG_KAFKA_BROKER_LIST=kafka:9092
LOG_KAFKA_TOPIC=laravel-logs

```

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1 days

Total

4

Last Release

2136d ago

Major Versions

v1.0.0 → v2.0.02020-07-12

PHP version history (2 changes)v1.0.0PHP &gt;=5.5.9

v2.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/25aef9db96e7295dedf20a48e81eb69dcfd3b2cae12859d37aa90c8a6c53e720?d=identicon)[hhxsv5](/maintainers/hhxsv5)

---

Top Contributors

[![hhxsv5](https://avatars.githubusercontent.com/u/7278743?v=4)](https://github.com/hhxsv5 "hhxsv5 (8 commits)")

---

Tags

laravellumenloggerkafka

### Embed Badge

![Health badge](/badges/hhxsv5-laravel-kafka-logger/health.svg)

```
[![Health](https://phpackages.com/badges/hhxsv5-laravel-kafka-logger/health.svg)](https://phpackages.com/packages/hhxsv5-laravel-kafka-logger)
```

###  Alternatives

[ytake/laravel-fluent-logger

fluent logger for laravel and lumen

63541.6k1](/packages/ytake-laravel-fluent-logger)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14642.7k1](/packages/guanguans-laravel-exception-notify)[melihovv/laravel-log-viewer

A Laravel log viewer

1231.5k1](/packages/melihovv-laravel-log-viewer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
