kfreiman / yii2-json-attribute-behavior
Yii2 Behavior for encode and decode json stored attributes
Installs: 11 712
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 1
Open Issues: 1
Type:yii2-extension
Requires
- yiisoft/yii2: *
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' ], ], ]; }