PHPackages                             readly24/yii2-logs - 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. readly24/yii2-logs

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

readly24/yii2-logs
==================

Logs

06PHP

Since Jun 2Pushed 8y agoCompare

[ Source](https://github.com/readly24/yii2-logs)[ Packagist](https://packagist.org/packages/readly24/yii2-logs)[ RSS](/packages/readly24-yii2-logs/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii2 Logs
=========

[](#yii2-logs)

Logs

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist readly24/yii2-logs "*"

```

or add

```
"readly24/yii2-logs": "*"

```

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

Usage
-----

[](#usage)

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

Вам нужно сделать миграцию:

```
yii migrate --migrationPath=@vendor/ready24/yii2-logs/src/migrations
```

Если вы хотите применить к определёному таблицы вам нужно создать связь между ними и в той модели (ActiveRecord) таблицы, реализовать интерфейс LogInterface

После вам нужно добавить в ваш класс новое поведение:

```
ready24\logs\behaviors\LogBehavior
```

и тогда вы сможете добавить новый лог имено к этой модели

```
$task = Tasks::findOne(1);
$task->createLog("Ваш лог");
```

или если вам не нужно данное удобство вы можете использовать статисческий метод класса Logs

```
/**
    @param mixed $message
    @param LogInterface|ActiveRecord $model
*/
Logs::create($message,$model = null);
```

Пример 1:

```

```

view

```
/**
 * @var \ready24\logs\models\Logs $log
 * @var \yii\db\ActiveRecord $model
 * @var \yii\data\BaseDataProvider $provider
 */

echo ListView::widget([
        'dataProvider' => $provider,
        'itemOptions' => ['class' => 'item'],
        'itemView' => function ($log, $key, $index, $widget) use ($model) {
                return $log->render($model);
        }
    ]);
```

Пример 2:

```

```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/37526892?v=4)[readly24](/maintainers/readly24)[@readly24](https://github.com/readly24)

---

Top Contributors

[![Nazrullo](https://avatars.githubusercontent.com/u/31762795?v=4)](https://github.com/Nazrullo "Nazrullo (2 commits)")

### Embed Badge

![Health badge](/badges/readly24-yii2-logs/health.svg)

```
[![Health](https://phpackages.com/badges/readly24-yii2-logs/health.svg)](https://phpackages.com/packages/readly24-yii2-logs)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B10.9k](/packages/psr-log)[open-telemetry/api

API for OpenTelemetry PHP.

1938.5M262](/packages/open-telemetry-api)[open-telemetry/sdk

SDK for OpenTelemetry PHP.

2326.5M315](/packages/open-telemetry-sdk)[illuminated/console-logger

Logging and Notifications for Laravel Console Commands.

8676.7k](/packages/illuminated-console-logger)

PHPackages © 2026

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