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 7y 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 today

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 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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://www.gravatar.com/avatar/7fdb4dfd8254a7f6128b5b9cbf2325101a7be32cbcb492951e8827d3c4cb179c?d=identicon)[readly24](/maintainers/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.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)
