PHPackages                             kriss/log-reader - 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. kriss/log-reader

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

kriss/log-reader
================

Log Reader For PHP

v1.3.7(1y ago)46.9k↑25%4MITPHPPHP &gt;7.0

Since Sep 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/krissss/php-log-reader)[ Packagist](https://packagist.org/packages/kriss/log-reader)[ RSS](/packages/kriss-log-reader/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (3)Versions (12)Used By (4)

Log Reader For PHP
==================

[](#log-reader-for-php)

[![preview](https://github.com/krissss/php-log-reader/raw/master/preview.png)](https://github.com/krissss/php-log-reader/raw/master/preview.png)

Installation
============

[](#installation)

```
composer require kriss/log-reader
```

Usage
=====

[](#usage)

Use LogReaderControllerTrait in controller
------------------------------------------

[](#use-logreadercontrollertrait-in-controller)

```
use Kriss\LogReader\Traits\LogReaderControllerTrait;
use Kriss\LogReader\LogReader;

class SomeController {
    use LogReaderControllerTrait;

    private $logReader;

    protected function getLogReader(): LogReader
    {
        if (!$this->logReader) {
            //$runtimePath = __DIR__ . '/../runtime/logs';
            $this->logReader = new LogReader($runtimePath, [
                'enable' => true,
                'deleteEnable' => true,
                // others
            ]);
        }
        return $this->logReader;
    }

    protected function getRequest(): SymfonyRequest
    {
        return request()->getSymfonyRequest();
    }

    protected function getBaseUrl(): string
    {
        return 'some/url-prefix';
    }
}
```

For Laravel
===========

[](#for-laravel)

[see example](./example/laravel)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity53

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 ~123 days

Recently: every ~175 days

Total

11

Last Release

559d ago

### Community

Maintainers

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

---

Top Contributors

[![krissss](https://avatars.githubusercontent.com/u/10680903?v=4)](https://github.com/krissss "krissss (19 commits)")

---

Tags

log-readerphp

### Embed Badge

![Health badge](/badges/kriss-log-reader/health.svg)

```
[![Health](https://phpackages.com/badges/kriss-log-reader/health.svg)](https://phpackages.com/packages/kriss-log-reader)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.9k556.2M21.5k](/packages/laravel-framework)[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k257.3M12.4k](/packages/symfony-framework-bundle)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.9M535](/packages/pimcore-pimcore)[statamic/cms

The Statamic CMS Core Package

4.9k3.8M1.2k](/packages/statamic-cms)[bitrix24/b24phpsdk

An official PHP library for the Bitrix24 REST API

10250.3k6](/packages/bitrix24-b24phpsdk)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19467.3M1.9k](/packages/drupal-core)

PHPackages © 2026

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