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(7mo ago)011.4k1[2 PRs](https://github.com/ollico/laravel-uid/pulls)MITPHPPHP ^8.2CI passing

Since Apr 25Pushed 3mo 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 1mo ago

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

50

—

FairBetter than 95% of packages

Maintenance73

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

222d 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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M685](/packages/barryvdh-laravel-ide-helper)[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k1.9M4](/packages/ashallendesign-short-url)[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/broadcasting

The Illuminate Broadcasting package.

7126.5M178](/packages/illuminate-broadcasting)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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