2017 © Pedro Peláez
 

yii2-extension yii2-uuidbehavior

Attaches a Ramsey V4::UUID

image

jberall/yii2-uuidbehavior

Attaches a Ramsey V4::UUID

  • Thursday, April 27, 2017
  • by jberall
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Yii2 UUID Behavior

Attaches a Ramsey V4::UUID, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist jberall/yii2-uuidbehavior "*"

or add, (*4)

"jberall/yii2-uuidbehavior": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by : Where _id is the column in the database representing a UUID. public function behaviors() { return [ 'uuidBehavior' => [ 'class' => \jberall\uuidbehavior\UuidBehavior::className(), 'uuid_column' => '_id', ], ]; }, (*6)

The Versions

27/04 2017

dev-master

9999999-dev

Attaches a Ramsey V4::UUID

  Sources   Download

Apache-2.0

The Requires

 

by Jonathan Berall

extension yii2 behavior uuid ramsey