PHPackages                             amilna/yii2-versioning - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. amilna/yii2-versioning

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

amilna/yii2-versioning
======================

Extensions for Yii2 for data versioning and watching

81477[3 issues](https://github.com/amilna/versioning/issues)PHP

Since Nov 25Pushed 10y ago5 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Data Versioning and CRUD Watching
=================================

[](#data-versioning-and-crud-watching)

Extensions for Yii2 for data versioning and CRUD watching. You can manage data version history that edited by user and manage user/group access at record level.

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

[](#installation)

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

Since this package do not have stable release on packagist, you should use these settings in your composer.json file :

```
"minimum-stability": "dev",
"prefer-stable": true,
```

After, either run

```
php composer.phar require --prefer-dist amilna/yii2-versioning "dev-master"

```

or add

```
"amilna/yii2-versioning": "dev-master"

```

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

run migration for database

```
./yii migrate --migrationPath=@amilna/versioning/migrations

```

add in bootstrap section of main config

```
	'bootstrap' => [
		...
		'amilna\versioning\components\Versioning',
		...
    	],

```

add in modules section of main config

```
	'gridview' =>  [
		'class' => 'kartik\grid\Module',
	],
	'versioning' => [
		'class' => 'amilna\versioning\Module',
		'userClass' =>  'dektrium\user\models\User',//'common\models\User',
		'defaults' => ["create"=>"create","view"=>"view"],
		//'onroutes' => ['yes/product','blog/post/update'], /* example to apply versioning on certain routes only */
		//'onmodels' => ['amilna\blog\models\BlogCatPos'], /* example to apply versioning on certain models only */
	]

```

Usage
-----

[](#usage)

Once the extension is installed, check the url: \[your application base url\]/index.php/versioning

Try it with edit some active record model an see the version that automatically created.

To use notification widget (it will inform you what has changed), just put in your view

```

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 98.6% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/da722c47aac6226ff5409ac6d29764628642acc5716af54f506b587b77a61a50?d=identicon)[aaiyo](/maintainers/aaiyo)

---

Top Contributors

[![aaiyo](https://avatars.githubusercontent.com/u/1450687?v=4)](https://github.com/aaiyo "aaiyo (71 commits)")[![evgenmil](https://avatars.githubusercontent.com/u/6258440?v=4)](https://github.com/evgenmil "evgenmil (1 commits)")

### Embed Badge

![Health badge](/badges/amilna-yii2-versioning/health.svg)

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

###  Alternatives

[bdelespierre/underscore

Underscore.js port in PHP

6944.2k1](/packages/bdelespierre-underscore)[lintaba/orchid-tables

An opinionated extension package for Laravel Orchid to extend its table handling capabilities, and some further useful helper methods.

412.6k](/packages/lintaba-orchid-tables)[sparkinzy/dcat-distpicker

省市区地址选择器，支持select2

272.8k1](/packages/sparkinzy-dcat-distpicker)[botman/driver-hangouts

Google Hangouts driver for BotMan

104.3k2](/packages/botman-driver-hangouts)

PHPackages © 2026

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