PHPackages                             lubos/unique-key - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lubos/unique-key

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

lubos/unique-key
================

CakePHP UniqueKey plugin which generates human readable unique keys

1118PHP

Since Jul 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/LubosRemplik/CakePHP-UniqueKey)[ Packagist](https://packagist.org/packages/lubos/unique-key)[ RSS](/packages/lubos-unique-key/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CakePHP UniqueKey
=================

[](#cakephp-uniquekey)

[![Build Status](https://camo.githubusercontent.com/8a0556575e8562719021a8494f5c7a0f20bd7b9a7e1833e20467c6c64664ef55/68747470733a2f2f7472617669732d63692e6f72672f4c75626f7352656d706c696b2f43616b655048502d556e697175654b65792e737667)](https://travis-ci.org/LubosRemplik/CakePHP-UniqueKey)[![Latest Stable Version](https://camo.githubusercontent.com/388ada7d204f6ec598a1e62b4f6c2ca9e1084d6c293cf6f23f137bdda3428d56/68747470733a2f2f706f7365722e707567782e6f72672f6c75626f732f756e697175652d6b65792f762f737461626c652e737667)](https://packagist.org/packages/lubos/unique-key)[![Total Downloads](https://camo.githubusercontent.com/006713495e91a8cfd9678af33842392f65eed019fa3fbb52815b70ff856ab809/68747470733a2f2f706f7365722e707567782e6f72672f6c75626f732f756e697175652d6b65792f646f776e6c6f6164732e737667)](https://packagist.org/packages/lubos/unique-key)[![Latest Unstable Version](https://camo.githubusercontent.com/6d9c50a2b44fa673e03d2e278293cca9b2f71a443bf888cae7e683a512d0e947/68747470733a2f2f706f7365722e707567782e6f72672f6c75626f732f756e697175652d6b65792f762f756e737461626c652e737667)](https://packagist.org/packages/lubos/unique-key)[![License](https://camo.githubusercontent.com/b901a87c2dfa35893594700d145edefaf89ee133aaeb8c8d9a0115eabcc5cb79/68747470733a2f2f706f7365722e707567782e6f72672f6c75626f732f756e697175652d6b65792f6c6963656e73652e737667)](https://packagist.org/packages/lubos/unique-key)

CakePHP 3.x UniqueKey plugin which generates human readable unique keys

Installation &amp; Configuration
--------------------------------

[](#installation--configuration)

```
composer require lubos/unique-key

```

Load plugin in bootstrap.php file

```
Plugin::load('Lubos/UniqueKey');
```

Usage
-----

[](#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 &amp; Features
-------------------

[](#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 &amp; clone
- Code bugfix or feature
- Follow [CakePHP coding standards](https://github.com/cakephp/cakephp-codesniffer)

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed9f8a00a3f474c6e003435f23d0873f000ab024fc4b8989f1009a14af1eb7d7?d=identicon)[LubosRemplik](/maintainers/LubosRemplik)

### Embed Badge

![Health badge](/badges/lubos-unique-key/health.svg)

```
[![Health](https://phpackages.com/badges/lubos-unique-key/health.svg)](https://phpackages.com/packages/lubos-unique-key)
```

###  Alternatives

[madeyourday/contao-rocksolid-custom-elements

Create your own, nestable content elements using a modular system. End the WYSIWYG chaos with your own content elements.

50341.9k12](/packages/madeyourday-contao-rocksolid-custom-elements)[yireo/magento2-replace-bundled

Replace bundled third party packages from Magento

45335.0k1](/packages/yireo-magento2-replace-bundled)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
