lubos / unique-key
CakePHP UniqueKey plugin which generates human readable unique keys
Installs: 118
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.4
- cakephp/cakephp: ~3.0
- cakephp/plugin-installer: *
This package is auto-updated.
Last update: 2024-11-04 19:59:34 UTC
README
CakePHP 3.x UniqueKey plugin which generates human readable unique keys
Installation & Configuration
composer require lubos/unique-key
Load plugin in bootstrap.php file
Plugin::load('Lubos/UniqueKey');
Usage
Add behavior with your table
public function initialize(array $config) { $this->addBehavior('Lubos/UniqueKey.UniqueKey'); }
Make sure your table has uid field
Generate number for later use
$invoice = $this->Invoices->newEntity(); $number = $this->Invoices->uniqueKey();
Bugs & Features
For bugs and feature requests, please use the issues section of this repository.
If you want to help, pull requests are welcome.
Please follow few rules:
- Fork & clone
- Code bugfix or feature
- Follow CakePHP coding standards