PHPackages                             factorenergia/yii2-activerecord-history - 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. [Database &amp; ORM](/categories/database)
4. /
5. factorenergia/yii2-activerecord-history

ActiveYii2-extension[Database &amp; ORM](/categories/database)

factorenergia/yii2-activerecord-history
=======================================

Storage history of changes to ActiveRecord

1.2.0(8y ago)015.2k↓100%1BSD-3-ClausePHP

Since Jul 21Pushed 6y agoCompare

[ Source](https://github.com/factorenergia/yii2-activerecord-history)[ Packagist](https://packagist.org/packages/factorenergia/yii2-activerecord-history)[ RSS](/packages/factorenergia-yii2-activerecord-history/feed)WikiDiscussions master Synced today

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

Yii2 ActiveRecord History Extension for Yii 2
=============================================

[](#yii2-activerecord-history-extension-for-yii-2)

This extension adds storage history of changes to the AR model

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

[](#installation)

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

Either run

```
php composer.phar require nhkey/yii2-activerecord-history "*"

```

or add

```
"nhkey/yii2-activerecord-history": "*"
```

to the require section of your composer.json.

If you are using DBManager as Manager, you need to run

```
php yii migrate --migrationPath=@vendor/nhkey/yii2-activerecord-history/migrations

```

Usage
-----

[](#usage)

If the property is not specified, the default manager is DBManager. In the extension is two managers: [DBManager](https://github.com/nhkey/yii2-activerecord-history/blob/master/docs/en/managers.md#dbmanager) and [FileManager](https://github.com/nhkey/yii2-activerecord-history/blob/master/docs/en/managers.md#filemanager). You can extend the class BaseManager.

There are two way how usage this extension:

- [As behavior](https://github.com/nhkey/yii2-activerecord-history/blob/master/docs/en/usage-as-behavior.md)
- [As extend the class ActiveRecord](https://github.com/nhkey/yii2-activerecord-history/blob/master/docs/en/usage-as-extend.md) **DEPRECATED**

Update to 1.1.2
---------------

[](#update-to-112)

For update you need to run:

```
php yii migrate --migrationPath=@vendor/nhkey/yii2-activerecord-history/migrations

```

Credits
-------

[](#credits)

Author: Mikhail Mikhalev

Email:

###  Health Score

35

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~164 days

Total

6

Last Release

3155d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8410b0769dbb54c1afd1ec5f22301fce7ac28f02d5ec1caff5d9d350964a14c9?d=identicon)[factorenergia](/maintainers/factorenergia)

---

Top Contributors

[![nhkey](https://avatars.githubusercontent.com/u/2902589?v=4)](https://github.com/nhkey "nhkey (6 commits)")[![factorenergia](https://avatars.githubusercontent.com/u/28297420?v=4)](https://github.com/factorenergia "factorenergia (4 commits)")[![Squarius](https://avatars.githubusercontent.com/u/5981582?v=4)](https://github.com/Squarius "Squarius (3 commits)")[![chaimleich](https://avatars.githubusercontent.com/u/7976661?v=4)](https://github.com/chaimleich "chaimleich (1 commits)")[![DD174](https://avatars.githubusercontent.com/u/2971088?v=4)](https://github.com/DD174 "DD174 (1 commits)")[![Sasha-Ch](https://avatars.githubusercontent.com/u/94524537?v=4)](https://github.com/Sasha-Ch "Sasha-Ch (1 commits)")

---

Tags

historyyii2activerecord

### Embed Badge

![Health badge](/badges/factorenergia-yii2-activerecord-history/health.svg)

```
[![Health](https://phpackages.com/badges/factorenergia-yii2-activerecord-history/health.svg)](https://phpackages.com/packages/factorenergia-yii2-activerecord-history)
```

###  Alternatives

[nhkey/yii2-activerecord-history

Storage history of changes to ActiveRecord

46141.9k1](/packages/nhkey-yii2-activerecord-history)[spinitron/yii2-dynamic-ar

Extends Yii ActiveRecord for Maria Dynamic Columns

576.7k](/packages/spinitron-yii2-dynamic-ar)[jlorente/yii2-activerecord-inheritance

ActiveRecord Inheritance is an util to provide the Class Table Inheritance Pattern the to the Yii2 framework. It fakes inheritance between two ActiveRecord classes.

184.2k](/packages/jlorente-yii2-activerecord-inheritance)[execut/yii2-1c-odata

Yii2 component for work with 1C oData via activeRecord

101.2k](/packages/execut-yii2-1c-odata)

PHPackages © 2026

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