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

Abandoned → [ollico/uid](/?search=ollico%2Fuid)Library[Utility &amp; Helpers](/categories/utility)

wearealgomas/uid
================

A handy package to generate unique identifiers for Eloquent models

2.0.0(6y ago)07.9k[2 PRs](https://github.com/ollico/uid/pulls)MITPHPPHP ^7.3

Since Mar 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ollico/uid)[ Packagist](https://packagist.org/packages/wearealgomas/uid)[ RSS](/packages/wearealgomas-uid/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (5)Versions (4)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

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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 ~419 days

Total

2

Last Release

2250d ago

Major Versions

1.0.0 → 2.0.02020-04-25

PHP version history (2 changes)1.0.0PHP ^7.1

2.0.0PHP ^7.3

### 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 (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.5k](/packages/larastan-larastan)[laravel/ai

The official AI SDK for Laravel.

9782.1M161](/packages/laravel-ai)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[flarum/core

Delightfully simple forum software.

201.4M2.2k](/packages/flarum-core)

PHPackages © 2026

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