kfreiman/yii2-json-attribute-behavior

Yii2 Behavior for encode and decode json stored attributes

v0.1 2016-02-10 11:01 UTC

This package is not auto-updated.

Last update: 2024-11-18 13:05:57 UTC


README

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