2017 © Pedro Peláez
 

library yii2-common

YII2 Common

image

yii2x/yii2-common

YII2 Common

  • Sunday, May 14, 2017
  • by basowy
  • Repository
  • 0 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

YII2 Common

YII2 Common, (*1)

Installation

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)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

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'] ] ]; }

The Versions

14/05 2017

dev-master

9999999-dev

YII2 Common

  Sources   Download

BSD-3-Clause

The Requires

 

by Yuriy Basov
by Yuriy Basov

helpers extension library yii2 behaviors