PHPackages                             atans/yii2-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. atans/yii2-history

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

atans/yii2-history
==================

An active record history for yii2

1.0.1(9y ago)11.9kMITPHP

Since Jan 9Pushed 9y ago2 watchersCompare

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

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

Yii2 History Extension
======================

[](#yii2-history-extension)

An active record history extension for yii2

Installation
============

[](#installation)

### 1.Download

[](#1download)

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

Either run

```
composer require atans/yii2-history

```

or add

```
"atans/yii2-history": "*"

```

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

Then run

```
composer update

```

### 2.Update database schema

[](#2update-database-schema)

```
$ php yii migrate/up --migrationPath=@vendor/atans/yii2-history/migrations

```

Usage
=====

[](#usage)

```
namespace frontend\models\User;

class User extends \yii\db\ActiveRecord
{
        /**
         * @inheritdoc
         */
        public function behaviors()
        {
            return [
                'history' => [
                    'class'      => \atans\history\behaviors\HistoryBehavior::className(),

                    // Options
                    'allowEvents' => [..],
                    'ignoreFields' => [...],
                    'extraFields' => [...],
                    'debug' => true, // Show the errors
                ],
            ];
        }

}
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

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

2

Last Release

3384d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2189764?v=4)[AS](/maintainers/atans)[@atans](https://github.com/atans)

---

Top Contributors

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

---

Tags

yii2extension

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[johnitvn/yii2-ajaxcrud

Gii CRUD template for Single Page Ajax Administration for yii2

105215.6k16](/packages/johnitvn-yii2-ajaxcrud)[dmstr/yii2-migrate-command

Console Migration Command with multiple paths/aliases support

33298.4k6](/packages/dmstr-yii2-migrate-command)[dmstr/yii2-db

Database extensions

19656.2k6](/packages/dmstr-yii2-db)

PHPackages © 2026

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