betsuno / yii2-json-behavior
JSON behavior for Yii2 framework
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/betsuno/yii2-json-behavior
Requires
- yiisoft/yii2: ^2.0
This package is auto-updated.
Last update: 2025-10-07 02:11:06 UTC
README
Installation
Run command in shell
> php composer.phar require "betsuno/yii2-json-behavior"
or add
"betsuno/yii2-json-behavior": "*"
in the require
section of the composer.json
file in your project
Usage
use yii2/behaviors/JsonBehavior ... class YourClass extendes Model { ... public function behaviors() { return [ JsonBehavior::register('propertyName'), ]; } ... }