dev-master
9999999-dev https://github.com/t-kanstantsin/yii2-author-behaviorAuthor behavior for Yii 2 framework.
BSD-3-Clause
The Requires
- php >=5.5.0
- yiisoft/yii2 *
yii2 yii yii 2 behavior
Author behavior for Yii 2 framework.
Behavior represents additional functionality similar to yii\db\TimestampBehavior
but automatically fills the specified attributes with the current user id
or value defined in value
field., (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
$ php composer.phar require --prefer-dist t-kanstantsin/yii2-author-behavior "*"
or add, (*4)
"t-kanstantsin/yii2-author-behavior": "*"
to the require section of your composer.json
file., (*5)
Example behavior configuration:, (*6)
// in `behaviors` method [ 'class' => tkanstantsin\yii2\behaviors\AuthorBehavior::class, 'createdByAttribute' => 'created_by_id', 'updatedByAttribute' => 'updated_by_id', ],
The BSD License (BSD). Please see License File for more information., (*7)
Author behavior for Yii 2 framework.
BSD-3-Clause
yii2 yii yii 2 behavior