PHPackages                             desmart/laravel-uuid-id - 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. desmart/laravel-uuid-id

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

desmart/laravel-uuid-id
=======================

Use UUIDs as IDs in Laravel models

1.0.0(5y ago)1815MITPHPPHP ^7.4|^8.0

Since Feb 25Pushed 5y ago7 watchersCompare

[ Source](https://github.com/DeSmart/laravel-uuid-id)[ Packagist](https://packagist.org/packages/desmart/laravel-uuid-id)[ RSS](/packages/desmart-laravel-uuid-id/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Laravel UUID 🆔
==============

[](#laravel-uuid-)

[![Latest version](https://camo.githubusercontent.com/cef082c978a819889222f72aac893537012b0800912f504caf9cc0f3bd7038d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6465736d6172742f6c61726176656c2d757569642d69642e7376673f7374796c653d666c6174)](https://github.com/DeSmart/laravel-uuid-id)[![Tests](https://github.com/desmart/laravel-uuid-id/workflows/Run%20Tests/badge.svg)](https://github.com/desmart/laravel-uuid-id/workflows/Run%20Tests/badge.svg)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](https://github.com/DeSmart/laravel-uuid-id/blob/master/LICENSE)

Package provides a simple trait that allows to use/generate UUIDs as IDs in Laravel models.

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

[](#installation)

To install the package via Composer, simply run the following command:

```
composer require desmart/laravel-uuid-id

```

Usage
-----

[](#usage)

This package does two things:

- enables having UUID as an ID (by modifying some underlying Laravel model methods), and
- automatically generates ordered UUID as an ID during model creation.

In any Laravel model that should use UUID as an ID, add `HasUuidId` trait:

```
class MyModel extends \Illuminate\Database\Eloquent\Model
{
    use \DeSmart\Laravel\Uuid\HasUuidId;
}
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

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

Unknown

Total

1

Last Release

1903d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1a3c56cab812fc073277f1e127a12e0c6066565dc57bd3045484fcca1901021b?d=identicon)[gollum](/maintainers/gollum)

---

Top Contributors

[![golonix](https://avatars.githubusercontent.com/u/9950778?v=4)](https://github.com/golonix "golonix (6 commits)")

---

Tags

laravelmodeluuididdesmart

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/desmart-laravel-uuid-id/health.svg)

```
[![Health](https://phpackages.com/badges/desmart-laravel-uuid-id/health.svg)](https://phpackages.com/packages/desmart-laravel-uuid-id)
```

###  Alternatives

[barryvdh/laravel-ide-helper

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

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4802.8M8](/packages/dyrynda-laravel-model-uuid)[glhd/special

1929.4k](/packages/glhd-special)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)

PHPackages © 2026

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