qvalent/yii2-models-history

Save model updates history to db

Installs: 23

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 1

Open Issues: 0

Type:yii2-extension

pkg:composer/qvalent/yii2-models-history

v1.0 2016-02-16 09:26 UTC

This package is not auto-updated.

Last update: 2025-10-12 01:32:21 UTC


README

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.