Skip to content

vryabov1/yii2-models-history

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Model updates history stored in DB

Extension is automatically saves all ActiveRecords inserts, updates and deletes at table {{%models_history}}

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist qvalent/yii2-models-history "*"

or add

"qvalent/yii2-models-history": "*"

to the require section of your composer.json file.

Then apply migration:

php yii migrate --migrationPath="@vendor/qvalent/yii2-models-history/migrations"

Usage

No other steps required. Extension is working now, you can test it by update some project ActiveRecord and see updates in {{%models_history}}.

Feel free to create issues if something is wrong.

About

Model updates history stored in DB

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages