2017 © Pedro Pelรกez
 

library random-key

Generate a random key for a model property

image

harp-orm/random-key

Generate a random key for a model property

  • Monday, July 14, 2014
  • by hkdobrev
  • Repository
  • 2 Watchers
  • 1 Stars
  • 97 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Random Key

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version, (*1)

Generate a random unique key for a model property, (*2)

Usage

// Model Class
use Harp\Harp\AbstractModel
use Harp\RandomKey\RandomKeyTrait

class User extends AbstractModel
{
    use RandomKeyTrat;

    public static function initialize($config)
    {
        // ...
        RandomKeyTrait::initialize($config);
    }
}

Database Table:, (*3)

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ Table: User             โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚ id          โ”‚ ingeter   โ”‚
โ”‚ name        โ”‚ string    โ”‚
โ”‚ uniqueKey*  โ”‚ string    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
* Required fields

License

Copyright (c) 2014, Clippings Ltd. Developed by Ivan Kerin, (*4)

Under BSD-3-Clause license, read LICENSE file., (*5)

The Versions

14/07 2014

dev-master

9999999-dev

Generate a random key for a model property

  Sources   Download

BSD-3-Clause

The Requires

 

14/07 2014

0.3.0

0.3.0.0

Generate a random key for a model property

  Sources   Download

BSD-3-Clause

The Requires

 

26/06 2014

0.1.0

0.1.0.0

Generate a random key for a model property

  Sources   Download

BSD-3-Clause

The Requires