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

Abandoned → [ollico/uid](/?search=ollico%2Fuid)Library

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 1mo 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 60% 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

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

[larastan/larastan

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

6.4k43.5M5.1k](/packages/larastan-larastan)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M526](/packages/laravel-passport)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M70](/packages/mongodb-laravel-mongodb)[genealabs/laravel-model-caching

Automatic caching for Eloquent models.

2.4k4.8M25](/packages/genealabs-laravel-model-caching)[ashallendesign/short-url

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

1.4k1.9M4](/packages/ashallendesign-short-url)[mikebronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k127.1k1](/packages/mikebronner-laravel-model-caching)

PHPackages © 2026

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