PHPackages                             harp-orm/random-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. harp-orm/random-key

ActiveLibrary

harp-orm/random-key
===================

Generate a random key for a model property

0.3.0(11y ago)01251BSD-3-ClausePHPPHP &gt;=5.4.0

Since Jun 26Pushed 11y ago1 watchersCompare

[ Source](https://github.com/harp-orm/random-key)[ Packagist](https://packagist.org/packages/harp-orm/random-key)[ RSS](/packages/harp-orm-random-key/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

Random Key
==========

[](#random-key)

[![Build Status](https://camo.githubusercontent.com/d35020fb3cf30b0301b329ca8d8e0589bba0bbad1441e2415861895deafa2550/68747470733a2f2f7472617669732d63692e6f72672f686172702d6f726d2f72616e646f6d2d6b65792e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/harp-orm/random-key)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/b3863929e3eafaaf429552c9dd7b4006483aef03998a0e5337173f02c342b09c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f686172702d6f726d2f72616e646f6d2d6b65792f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/harp-orm/random-key/)[![Code Coverage](https://camo.githubusercontent.com/b4110f7b15905888a675953c7e5df51c103326424877e7da6b1388233fa6c7de/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f686172702d6f726d2f72616e646f6d2d6b65792f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/harp-orm/random-key/)[![Latest Stable Version](https://camo.githubusercontent.com/d3f635e76d53ff0958116a31c95bcce3a9b6063b3e462bea4673eda2ec3a6cfb/68747470733a2f2f706f7365722e707567782e6f72672f686172702d6f726d2f72616e646f6d2d6b65792f762f737461626c652e706e67)](https://packagist.org/packages/harp-orm/random-key)

Generate a random unique key for a model property

Usage
-----

[](#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:**

```
┌─────────────────────────┐
│ Table: User             │
├─────────────┬───────────┤
│ id          │ ingeter   │
│ name        │ string    │
│ uniqueKey*  │ string    │
└─────────────┴───────────┘
* Required fields

```

License
-------

[](#license)

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

Under BSD-3-Clause license, read LICENSE file.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~17 days

Total

2

Last Release

4318d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/506129?v=4)[Harry Dobrev](/maintainers/hkdobrev)[@hkdobrev](https://github.com/hkdobrev)

---

Top Contributors

[![ivank](https://avatars.githubusercontent.com/u/4976?v=4)](https://github.com/ivank "ivank (13 commits)")

### Embed Badge

![Health badge](/badges/harp-orm-random-key/health.svg)

```
[![Health](https://phpackages.com/badges/harp-orm-random-key/health.svg)](https://phpackages.com/packages/harp-orm-random-key)
```

PHPackages © 2026

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