demmonico/yii2-behaviors Yii2 behaviors library

extensionbehaviorcomponent

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(),
    ];
}

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.0 is the latest of one release



MIT license
Stats
0 github stars & 1 github forks
2 downloads in the last day
45 downloads in the last 30 days
2358 total downloads