PHPackages                             vsevolod-ryzhov/yii2-ar-logger - 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. vsevolod-ryzhov/yii2-ar-logger

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

vsevolod-ryzhov/yii2-ar-logger
==============================

Yii2 ActiveRecord changes logger

v0.1(5y ago)01MITPHPPHP &gt;=7.1CI failing

Since May 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/vsevolod-ryzhov/yii2-ar-logger)[ Packagist](https://packagist.org/packages/vsevolod-ryzhov/yii2-ar-logger)[ RSS](/packages/vsevolod-ryzhov-yii2-ar-logger/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (2)Used By (0)

Logger behavior for Yii2 Active Record
======================================

[](#logger-behavior-for-yii2-active-record)

Log change of Yii2 AR models

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

[](#installation)

Via Composer

```
composer require vsevolod-ryzhov/yii2-ar-logger

```

Logs storage
------------

[](#logs-storage)

You can install migration to store data in your database:

```
php yii migrate --migrationPath=@vendor/vsevolod-ryzhov/yii2-ar-logger/src/migrations

```

or you can use your own storage data class, which should implement *ArLoggerStorageInterface* interface

Usage
-----

[](#usage)

Update your ActiveRecord class:

- if you use the built-in class *DbLoggerStorage*

```
public function behaviors()
{
    return [
        ...
        [
            'class' => ArLoggerBehavior::class,
            'excludedAttributes' => ['created_at', 'updated_at'],
        ],
        ...
    ];
}
```

- if you want to use your own storage:

```
// create your own storage class
class MyOwnStorage implements ArLoggerStorageInterface
{
    public function store(ArLoggerObject $object): bool
    {
        // save $object here
        return true;
    }
}

// pass storage class to behavior param "storage"
public function behaviors()
{
    return [
        ...
        [
            'class' => ArLoggerBehavior::class,
            'storage' => MyOwnStorage::class,
            'excludedAttributes' => ['created_at', 'updated_at'],
        ],
        ...
    ];
}
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2180d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3246627?v=4)[Vsevolod Ryzhov](/maintainers/vsevolod-ryzhov)[@vsevolod-ryzhov](https://github.com/vsevolod-ryzhov)

---

Top Contributors

[![vsevolod-ryzhov](https://avatars.githubusercontent.com/u/3246627?v=4)](https://github.com/vsevolod-ryzhov "vsevolod-ryzhov (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/vsevolod-ryzhov-yii2-ar-logger/health.svg)

```
[![Health](https://phpackages.com/badges/vsevolod-ryzhov-yii2-ar-logger/health.svg)](https://phpackages.com/packages/vsevolod-ryzhov-yii2-ar-logger)
```

###  Alternatives

[bedezign/yii2-audit

Yii2 Audit records and displays web/cli requests, database changes, php/js errors and associated data.

201657.4k4](/packages/bedezign-yii2-audit)[mito/yii2-sentry

Yii 2 extension for Sentry

92377.7k](/packages/mito-yii2-sentry)

PHPackages © 2026

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