inspirenmy / yii2-behaviors
Yii2 behaviors library
Package info
github.com/inspirenmy/yii2-behaviors
Type:yii2-extension
pkg:composer/inspirenmy/yii2-behaviors
1.0.1
2017-09-21 05:57 UTC
Requires
- php: >5.5.0
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2026-03-15 13:17:36 UTC
README
#Yii2 behaviors library ##Description Yii2 behaviors library which used in web-application development.
##Composition ###SanitizeBehavior
Sanitize model string attributes (all string attributes by default). You can exclude some fields or allow some html tags.
#####Usage:
// in model ActiveRecord public function behaviors() { return [ SanitizeBehavior::className(), ]; }
###TimestampBehavior Extends standard yii class to use with not required attributes.
#####Usage:
// in model ActiveRecord public function behaviors() { return [ TimestampBehavior::className(), ]; }