library random-key
Generate a random key for a model property
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
Random Key
, (*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)
dev-master
9999999-dev
Generate a random key for a model property
Sources
Download
BSD-3-Clause
The Requires
0.3.0
0.3.0.0
Generate a random key for a model property
Sources
Download
BSD-3-Clause
The Requires
0.1.0
0.1.0.0
Generate a random key for a model property
Sources
Download
BSD-3-Clause
The Requires