Skip to content

kfreiman/yii2-json-attribute-behavior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-json-attribute-behavior

Yii2 Behavior for encode and decode json stored attributes

Instalation

composer require kfreiman/yii2-json-attribute-behavior "dev-master"

Use

public function behaviors()
{
    return [
        'jsonAttributes' => [
            'class' => JsonAttributeBehavior::className(),
            'attributes' => [
                'attrJson' => 'attr'
            ],
        ],
    ];
}

About

Yii2 Behavior for encode and decode json stored attributes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages