dev-master
9999999-devYII2 Common
BSD-3-Clause
The Requires
- yiisoft/yii2 *
- bower-asset/ace-builds *
by Yuriy Basov
by Yuriy Basov
helpers extension library yii2 behaviors
YII2 Common
YII2 Common, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist yii2x/yii2-common "*"
or add, (*4)
"yii2x/yii2-common": "*"
to the require section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
public function behaviors() { return [ [ 'class' => \yii2x\common\behaviors\IpAddressBlameableBehavior::className(), 'createdIpAttribute' => 'created_ip', 'updatedIpAttribute' => 'updated_ip', ], [ 'class' => \yii2x\common\behaviors\JsonFieldBehavior::className(), 'attributes' => ['params'] ] ]; }
YII2 Common
BSD-3-Clause
helpers extension library yii2 behaviors