PHPackages                             exertis/yii2-save-with-audit-trail-behavior - 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. exertis/yii2-save-with-audit-trail-behavior

ActiveYii2-extension

exertis/yii2-save-with-audit-trail-behavior
===========================================

Adds a $model-&gt;saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

v1.0.7(10y ago)0250MITPHP

Since Dec 3Pushed 10y ago4 watchersCompare

[ Source](https://github.com/ExertisMicro-P/yii2-save-with-audit-trail-behavior)[ Packagist](https://packagist.org/packages/exertis/yii2-save-with-audit-trail-behavior)[ RSS](/packages/exertis-yii2-save-with-audit-trail-behavior/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (10)Used By (0)

Yii2 Save With Audit Trail Behavior
===================================

[](#yii2-save-with-audit-trail-behavior)

Adds a $model-&gt;saveWithAuditTrail() method to your Models allowing you to annotate changes to your data.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist exertis/yii2-save-with-audit-trail-behavior "*"

```

or add

```
"exertis/yii2-save-with-audit-trail-behavior": "*"

```

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

Database Setup
--------------

[](#database-setup)

You need to run some migrations to setup the Audit Trail table.

```
php yii migrate --migrationPath=@vendor/exertis/yii2-save-with-audit-trail-behavior/migrations

```

Configuring
-----------

[](#configuring)

First you need to configure model as follows:

```
use exertis\savewithaudittrail\SaveWithAuditTrailBehavior;

class Post extends ActiveRecord
{
    public function behaviors() {
        return [
            [
                'class' => SaveWithAuditTrailBehavior::className(),
            ],
        ];
    }
}
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity69

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

Recently: every ~0 days

Total

9

Last Release

3745d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/091014707de0946d5ce7ba9fa5a86473a14b8b0814f7c623a45f127a914edafc?d=identicon)[russellhutsonmicro-p](/maintainers/russellhutsonmicro-p)

---

Top Contributors

[![russellhutsonmicro-p](https://avatars.githubusercontent.com/u/6674315?v=4)](https://github.com/russellhutsonmicro-p "russellhutsonmicro-p (29 commits)")

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/exertis-yii2-save-with-audit-trail-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/exertis-yii2-save-with-audit-trail-behavior/health.svg)](https://phpackages.com/packages/exertis-yii2-save-with-audit-trail-behavior)
```

###  Alternatives

[skeeks/cms

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

13825.6k47](/packages/skeeks-cms)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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