PHPackages                             lengnuan-v/yii2-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. lengnuan-v/yii2-log-reader

ActiveYii2-extension[Logging &amp; Monitoring](/categories/logging)

lengnuan-v/yii2-log-reader
==========================

yii2,extension,log,reader

03PHP

Since Sep 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lengnuan-v/yii2-log-reader)[ Packagist](https://packagist.org/packages/lengnuan-v/yii2-log-reader)[ RSS](/packages/lengnuan-v-yii2-log-reader/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-log-reader
===============

[](#yii2-log-reader)

yii2,extension,log,reader

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
composer require --prefer-dist lengnuan-v/yii2-log-reader "dev-master"

```

or add

```
"lengnuan-v/yii2-log-reader": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
return [
    'log'         => [
        'class'   => 'lengnuan\logReader\Module',
        'layout'  => "@views/layouts/main",
        'aliases' => [
            'Backend'  => '@backend/runtime/logs/app.log',
            'Frontend' => '@frontend/runtime/logs/app.log',
            'Console'  => '@console/runtime/logs/app.log',
        ],
    ],
];
```

You can then access Log Reader using the following URL:

```
http://localhost/path/to/index.php?r=log-reader
```

or if you have enabled pretty URLs, you may use the following URL:

```
http://localhost/path/to/log-reader
```

History Usage
-------------

[](#history-usage)

For every day log view, you can config yii log like this:

```
[
    'class'   => 'yii\log\FileTarget',
    'levels'  => ['error', 'warning'],
    'logFile' => '@runtime/logs/app.log',
]
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4a8484139b8e37ba0c163f47c5437cc4a85f7e0d664f76516781708ce206e58c?d=identicon)[lengnuan-v](/maintainers/lengnuan-v)

---

Top Contributors

[![lengnuan-v](https://avatars.githubusercontent.com/u/45681358?v=4)](https://github.com/lengnuan-v "lengnuan-v (6 commits)")

### Embed Badge

![Health badge](/badges/lengnuan-v-yii2-log-reader/health.svg)

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

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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