Download the PHP package emidia/yii2-jsonify without Composer
On this page you can find all versions of the php package emidia/yii2-jsonify. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download emidia/yii2-jsonify
More information about emidia/yii2-jsonify
Files in emidia/yii2-jsonify
Download emidia/yii2-jsonify
More information about emidia/yii2-jsonify
Files in emidia/yii2-jsonify
Vendor emidia
Package yii2-jsonify
Short Description Behavior that convert array to JSON before save data in model
License MIT
Package yii2-jsonify
Short Description Behavior that convert array to JSON before save data in model
License MIT
Please rate this library. Is it a good library?
Informations about the package yii2-jsonify
Yii2 JSONify
Behavior that convert array to JSON before save data in model
Install
Install via composer
Or you may add dependency manually in composer.json:
How to use
To use JsonifyBehavior, insert the following code to your ActiveRecord class:
By default JsonifyBehavior fill json_data
attribute from array into a json encoded string
If your attribute names are different, you may configure the [[attribute]] properties like the following:
So, if set an array in model's attribute, this behavior will convert all data to JSON
All versions of yii2-jsonify with dependencies
PHP Build Version
Package Version
No informations.
The package emidia/yii2-jsonify contains the following files
Loading the files please wait ....