nhkey/yii2-activerecord-history Storage history of changes to ActiveRecord

activerecordhistory

Yii2 ActiveRecord History Extension for Yii 2

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

Changelog

Yii2-ActiveRecord-History Extension for Yii 2 ChangeLog

1.1.2.1 Oct 13, 2015

  • Add eventsList (Issue #4)
  • Fixed docs

1.1.2 Oct 13, 2015

  • Add save user_id as option (Issue #2)
  • Add docs

1.1.1 Oct 13, 2015

  • Add ignoreFields property (Issue #1)
  • Add minimum-stability in composer.json
  • Fixed codestyle
  • Add some changes in documentation
  • "As extend the class ActiveRecord" is deprecated now

1.1.0 Jul 21, 2015

  • Maybe use as behavior or as extend the class ActiveRecord
  • New structure
  • Refactoring
  • Rename provider to manager

1.0.2-beta Mar 3, 2015

  • Fixed FileManager: added lock for files
  • Added examples in README
  • Added file LICENCE.md
  • Added options for provider (ex. filename in FileManager).

1.0.1-beta Feb 24, 2015

  • Small fix
  • Removed namespace from call of manager

1.0.0-beta Jan 27, 2015

  • Initial release.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.1.2.2 is the latest of 5 releases



BSD-3-Clause license
Stats
47 github stars & 37 github forks
50 downloads in the last day
780 downloads in the last 30 days
118148 total downloads