factorenergia/yii2-activerecord-history

Storage history of changes to ActiveRecord

Installs: 12 438

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 37

Type:yii2-extension

1.2.0 2017-08-01 14:58 UTC

This package is auto-updated.

Last update: 2024-10-29 05:16:21 UTC


README

This extension adds storage history of changes to the AR model

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require nhkey/yii2-activerecord-history "*"

or add

"nhkey/yii2-activerecord-history": "*"

to the require section of your composer.json.

If you are using DBManager as Manager, you need to run

php yii migrate --migrationPath=@vendor/nhkey/yii2-activerecord-history/migrations

Usage

If the property is not specified, the default manager is DBManager. In the extension is two managers: DBManager and FileManager. You can extend the class BaseManager.

There are two way how usage this extension:

Update to 1.1.2

For update you need to run:

php yii migrate --migrationPath=@vendor/nhkey/yii2-activerecord-history/migrations

Credits

Author: Mikhail Mikhalev

Email: mail@mikhailmikhalev.ru