dev-master
9999999-dev https://github.com/LubosRemplik/CakePHP-UniqueKeyCakePHP UniqueKey plugin which generates human readable unique keys
MIT
The Requires
plugin cakephp unique key
CakePHP UniqueKey plugin which generates human readable unique keys
CakePHP 3.x UniqueKey plugin which generates human readable unique keys, (*2)
composer require lubos/unique-key
Load plugin in bootstrap.php file, (*3)
Plugin::load('Lubos/UniqueKey');
Add behavior with your table, (*4)
public function initialize(array $config) { $this->addBehavior('Lubos/UniqueKey.UniqueKey'); }
Make sure your table has uid field, (*5)
Generate number for later use, (*6)
$invoice = $this->Invoices->newEntity(); $number = $this->Invoices->uniqueKey();
For bugs and feature requests, please use the issues section of this repository., (*7)
If you want to help, pull requests are welcome.
Please follow few rules:, (*8)
CakePHP UniqueKey plugin which generates human readable unique keys
MIT
plugin cakephp unique key