2017 © Pedro Peláez
 

yii2-extension yii2-history

An active record history for yii2

image

atans/yii2-history

An active record history for yii2

  • Thursday, March 30, 2017
  • by atans
  • Repository
  • 2 Watchers
  • 1 Stars
  • 115 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

Yii2 History Extension

An active record history extension for yii2, (*1)

Installation

1.Download

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

composer require atans/yii2-history

or add, (*4)

"atans/yii2-history": "*"

to the require section of your composer.json file., (*5)

Then run, (*6)

composer update

2.Update database schema

$ php yii migrate/up --migrationPath=@vendor/atans/yii2-history/migrations

Usage


namespace frontend\models\User; class User extends \yii\db\ActiveRecord { /** * @inheritdoc */ public function behaviors() { return [ 'history' => [ 'class' => \atans\history\behaviors\HistoryBehavior::className(), // Options 'allowEvents' => [..], 'ignoreFields' => [...], 'extraFields' => [...], 'debug' => true, // Show the errors ], ]; } }

The Versions

30/03 2017

dev-master

9999999-dev

An active record history for yii2

  Sources   Download

MIT

The Requires

 

by Avatar atans

extension yii2

30/03 2017

1.0.1

1.0.1.0

An active record history for yii2

  Sources   Download

MIT

The Requires

 

by Avatar atans

extension yii2

09/01 2017

1.0.0

1.0.0.0

An active record history for yii2

  Sources   Download

MIT

The Requires

 

by Avatar atans

extension yii2