PHPackages                             ollico/laravel-uid - 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. ollico/laravel-uid

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ollico/laravel-uid
==================

A handy package to generate unique identifiers for Eloquent models

v6.0.0(9mo ago)012.3k1[2 PRs](https://github.com/ollico/laravel-uid/pulls)MITPHPPHP ^8.2CI failing

Since Apr 25Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/ollico/laravel-uid)[ Packagist](https://packagist.org/packages/ollico/laravel-uid)[ RSS](/packages/ollico-laravel-uid/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (5)Versions (12)Used By (0)

UID Helper
==========

[](#uid-helper)

A handy little Laravel compatible package that creates unique identifiers like `u5CVsCnxyXg` for your Eloquent models.

Installation
------------

[](#installation)

Require this package

```
composer require ollico/uid

```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

### Database

[](#database)

Add the `$table->uid()` in your Schemas:

```
Schema::create('your_table', function (Blueprint $table) {
    $table->uid();
})

```

### Eloquent

[](#eloquent)

Add the `HasUid` trait to your `Models` to add the capabilities:

- Local scope `$model->uid($uid)`
- Automatic generation of `uid` during the `creating` event

Good to know
------------

[](#good-to-know)

We utilise [HashIds](https://github.com/ivanakimov/hashids.php) under the hood.

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance66

Regular maintenance activity

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 64.7% 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 ~248 days

Recently: every ~307 days

Total

9

Last Release

277d ago

Major Versions

1.0.3 → v2.0.02022-02-04

v2.0.0 → v3.0.02022-05-19

v3.0.0 → v4.0.02024-01-29

v4.0.0 → v5.0.02024-10-19

v5.0.1 → v6.0.02025-10-01

PHP version history (3 changes)1.0.0PHP ^7.3

v2.0.0PHP ^8.1

v4.0.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![davidianbonner](https://avatars.githubusercontent.com/u/534654?v=4)](https://github.com/davidianbonner "davidianbonner (11 commits)")[![KeironMcGivern](https://avatars.githubusercontent.com/u/43957811?v=4)](https://github.com/KeironMcGivern "KeironMcGivern (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ollico-laravel-uid/health.svg)

```
[![Health](https://phpackages.com/badges/ollico-laravel-uid/health.svg)](https://phpackages.com/packages/ollico-laravel-uid)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M201](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[illuminate/events

The Illuminate Events package.

13557.0M2.1k](/packages/illuminate-events)

PHPackages © 2026

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