PHPackages                             map-ir/laravel-log-usage - 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. map-ir/laravel-log-usage

ActiveLibrary

map-ir/laravel-log-usage
========================

log usage service

0.2.4(2y ago)23.0kMITPHPPHP ^7.1|^8.0

Since Oct 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/map-ir/laravel-log-usage)[ Packagist](https://packagist.org/packages/map-ir/laravel-log-usage)[ Docs](https://github.com/map-ir/laravel-log-usage)[ RSS](/packages/map-ir-laravel-log-usage/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (5)Dependencies (2)Versions (7)Used By (0)

Map.ir log usage kafka and ELK
==============================

[](#mapir-log-usage-kafka-and-elk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3bf46d459cec1df992d2b87a10810f829b0c2e69bda6cfb63e1bd0117c5fc49c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d61702d69722f6c61726176656c2d6c6f672d75736167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/map-ir/laravel-log-usage)[![Total Downloads](https://camo.githubusercontent.com/6ce973d3fe67615e22df201957491c2e78d48a55476503767a1e6e78a5ae5781/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d61702d69722f6c61726176656c2d6c6f672d75736167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/map-ir/laravel-log-usage)

#### kafka

[](#kafka)

#### elasticSearch

[](#elasticsearch)

#### logstash

[](#logstash)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require map-ir/laravel-log-usage
```

laravel Installation
--------------------

[](#laravel-installation)

in laravel &lt; 5.4 add this line to your config/app.php providers:

```
MapIr\LaravelLogUsage\LaravelLogUsageServiceProvider::class,
```

after install package in laravel run artisan for publish config file

```
php artisan vendor:publish --tag=config
```

After publish the package files you must open laravel-log-usage.php in config folder.

lumen Installation:
-------------------

[](#lumen-installation)

add package middleware in bootstrap/app.php.

```
 $app->middleware([
     \MapIr\LaravelLogUsage\Http\Middleware\LogUsageMiddleware::class
 ]);
```

copy package config directory `vendor/map-ir/laravel-log-usage/config/logUsage.php` to root folder alongside with app directory. update bootstrap/app.php by adding this line in `Register Config Files` section:

```
$app->configure('logUsage');
```

> you can set the keys in your .env file

```
TOPIC="topic name for produce kafka"
BROKER_VERSION="version use broker"
KAFKA_MRIM="Topic metadata refresh interval in milliseconds broker"
REQUIRED_ACK="This field indicates how many acknowledgements the leader broker"
IS_ASYNC="Whether to use asynchronous production messages"
KAFKA_KEY="key for kafka producer index"
```

Usage
-----

[](#usage)

for config ELK Consumer kafka

### Testing

[](#testing)

```
composer test
```

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Armin Nasiri](https://github.com/map-ir)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~230 days

Recently: every ~183 days

Total

6

Last Release

890d ago

PHP version history (2 changes)0.1.0PHP ^7.1

0.2.0PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/c2b3c9fb47465228ea3af42aab8618bff605e058a8928fcb8950a694af5a8551?d=identicon)[shiveh](/maintainers/shiveh)

---

Top Contributors

[![hamedzarei](https://avatars.githubusercontent.com/u/22744130?v=4)](https://github.com/hamedzarei "hamedzarei (6 commits)")[![arminnasiri](https://avatars.githubusercontent.com/u/38916326?v=4)](https://github.com/arminnasiri "arminnasiri (2 commits)")[![aminbehbahani](https://avatars.githubusercontent.com/u/48012463?v=4)](https://github.com/aminbehbahani "aminbehbahani (1 commits)")

---

Tags

map-irlaravel-log-usage

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/map-ir-laravel-log-usage/health.svg)

```
[![Health](https://phpackages.com/badges/map-ir-laravel-log-usage/health.svg)](https://phpackages.com/packages/map-ir-laravel-log-usage)
```

PHPackages © 2026

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