jc-it / yii2-blameable-behavior
Blameable behavior for Yii2 that includes deleted by.
Installs: 616
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/jc-it/yii2-blameable-behavior
Requires
- php: >=7.1.0
- yiisoft/yii2: ~2.0.19
This package is auto-updated.
Last update: 2025-09-11 02:12:21 UTC
README
This extension provides a package that extends the Blameable behavior with a deleted_by
field.
$ composer require jc-it/yii2-blameable-behavior
or add
"jc-it/yii2-blameable-behavior": "^<latest version>"
to the require
section of your composer.json
file.
Configuration
In a model:
/** * @return array */ public function behaviors(): array { return ArrayHelper::merge( parent::behaviors(), [ BlameableBehavior::class => [ 'class' => BlameableBehavior::class ], ] ); }
For more detailed configuration, see Blameable behavior.
Credits
License
The MIT License (MIT). Please see LICENSE for more information.