PHPackages                             mata/mata-ar-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. mata/mata-ar-history

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

mata/mata-ar-history
====================

Provides convenient method for versioning AR models

1.0.6.0-alpha(5y ago)02.6k1MITPHP

Since May 18Pushed 5y ago4 watchersCompare

[ Source](https://github.com/qi-interactive/mata-ar-history)[ Packagist](https://packagist.org/packages/mata/mata-ar-history)[ RSS](/packages/mata-mata-ar-history/feed)WikiDiscussions development Synced 1mo ago

READMEChangelog (10)DependenciesVersions (16)Used By (1)

MATA Active Record History
==========================

[](#mata-active-record-history)

Provides convenient method for versioning AR models.

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

[](#installation)

- Add the module using composer:

```
"mata/mata-ar-history": "~1.0.0"
```

Changelog
---------

[](#changelog)

1.0.2.7-alpha, September 7, 2016
--------------------------------

[](#1027-alpha-september-7-2016)

- Added migration (alter DocumentId from 64 to 128 characters)

1.0.2.6-alpha, July 12, 2016
----------------------------

[](#1026-alpha-july-12-2016)

- Fix for HistoryBehavior, added setting model attributes from revision

1.0.2.5-alpha, November 30, 2015
--------------------------------

[](#1025-alpha-november-30-2015)

- Bug fix

1.0.2.4-alpha, November 2, 2015
-------------------------------

[](#1024-alpha-november-2-2015)

- Fixed switch between revisions

1.0.2.3-alpha, October 12, 2015
-------------------------------

[](#1023-alpha-october-12-2015)

- Updated logic for getting table alias

1.0.2.2-alpha, October 8, 2015
------------------------------

[](#1022-alpha-october-8-2015)

- Changed ActiveQuery::EVENT\_BEFORE\_PREPARE\_STATEMENT to run only for models with HistoryBehavior

1.0.2.1-alpha, September 29, 2015
---------------------------------

[](#1021-alpha-september-29-2015)

- Change for HistoryBehavior in setRevision() method where now all attributes are set (previously were set safe attributes only). This change also causes that validators are not attached into model object.
- Added missing document name on history overlay

1.0.2-alpha, June 8, 2015
-------------------------

[](#102-alpha-june-8-2015)

- Added Migration with Status and Comments fields
- Updates for console application

1.0.1-alpha, June 3, 2015
-------------------------

[](#101-alpha-june-3-2015)

- Added BootstrapInterface
- Used Revision::Status to indicate removed items

1.0.0-alpha, May 18, 2015
-------------------------

[](#100-alpha-may-18-2015)

- Initial release.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

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

Every ~166 days

Recently: every ~423 days

Total

14

Last Release

1843d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/894e97cca05581e84231d47aa964c3cbca2cc71d97a8aa2c77f7c74983812b1e?d=identicon)[qiinteractive](/maintainers/qiinteractive)

![](https://www.gravatar.com/avatar/a9e7c545f556272ce9b40e7c20d3be8196f1a19f4130b13d350d36a923838e32?d=identicon)[michal-qi](/maintainers/michal-qi)

---

Top Contributors

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

---

Tags

versionsyii2matamata-ar-history

### Embed Badge

![Health badge](/badges/mata-mata-ar-history/health.svg)

```
[![Health](https://phpackages.com/badges/mata-mata-ar-history/health.svg)](https://phpackages.com/packages/mata-mata-ar-history)
```

###  Alternatives

[voskobovich/yii2-linker-behavior

This behavior makes it easy to maintain many-to-many and one-to-many relations in your ActiveRecord models.

80319.0k9](/packages/voskobovich-yii2-linker-behavior)[mootensai/yii2-relation-trait

Yii 2 Models load with relation, &amp; transaction save with relation

47220.3k9](/packages/mootensai-yii2-relation-trait)[nhkey/yii2-activerecord-history

Storage history of changes to ActiveRecord

46143.4k1](/packages/nhkey-yii2-activerecord-history)[dmstr/yii2-db

Database extensions

19618.8k6](/packages/dmstr-yii2-db)[spanjeta/yii2-backup

Database Backup and Restore functionality

285.0k1](/packages/spanjeta-yii2-backup)[craftcms/query

Execute database queries from the Control Panel

1614.5k1](/packages/craftcms-query)

PHPackages © 2026

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