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

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

jakharbek/yii2-logs
===================

Logs

2.0(7y ago)1153MITPHP

Since Jun 2Pushed 7y agoCompare

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

READMEChangelogDependencies (1)Versions (5)Used By (0)

Yii2 Logs
=========

[](#yii2-logs)

Core

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

[](#installation)

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

Either run

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

```

or add

```
"jakharbek/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/jakharbek/yii2-logs/src/migrations
```

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

Пример 1:

```

```

view

```
/**
 * @var \jakharbek\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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

4

Last Release

2755d ago

Major Versions

1.6 → 2.02019-01-25

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

logsyii2extension

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13926.0k65](/packages/skeeks-cms)[mito/yii2-sentry

Yii 2 extension for Sentry

92383.3k](/packages/mito-yii2-sentry)[sammaye/yii2-audittrail

A port of audit trail

40420.0k](/packages/sammaye-yii2-audittrail)[lav45/yii2-activity-logger

Tools to store user activity log for Yii2

3463.4k](/packages/lav45-yii2-activity-logger)[apollo11/yii2-logger

Log application errors in slack channel

1012.1k1](/packages/apollo11-yii2-logger)

PHPackages © 2026

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