yii2x / yii2-common
YII2 Common
Installs: 16
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/yii2x/yii2-common
Requires
- bower-asset/ace-builds: *
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-09-28 08:32:39 UTC
README
YII2 Common
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yii2x/yii2-common "*"
or add
"yii2x/yii2-common": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
Model Configuration:
public function behaviors() { return [ [ 'class' => \yii2x\common\behaviors\IpAddressBlameableBehavior::className(), 'createdIpAttribute' => 'created_ip', 'updatedIpAttribute' => 'updated_ip', ], [ 'class' => \yii2x\common\behaviors\JsonFieldBehavior::className(), 'attributes' => ['params'] ] ]; }