PHPackages                             kfoobar/laravel-uuid - 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. [Database &amp; ORM](/categories/database)
4. /
5. kfoobar/laravel-uuid

ActiveLibrary[Database &amp; ORM](/categories/database)

kfoobar/laravel-uuid
====================

UUID Trait for Eloquent Models in Laravel

v1.0.3(2y ago)02.1k↓16.7%MITPHPPHP ^7.3|^8.0

Since Feb 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/KFoobar/laravel-uuid)[ Packagist](https://packagist.org/packages/kfoobar/laravel-uuid)[ RSS](/packages/kfoobar-laravel-uuid/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Laravel UUID Trait for Eloquent Models
======================================

[](#laravel-uuid-trait-for-eloquent-models)

Enhance your Laravel models with UUID functionality seamlessly using our trait, compatible with Laravel 5.5 and newer versions.

Installation Guide
------------------

[](#installation-guide)

Install the package through Composer with the following command:

```
composer require kfoobar/laravel-uuid
```

How to Use
----------

[](#how-to-use)

To integrate UUIDs into your models, simply use the `KFoobar\Uuid\Traits\HasUuid` trait in your model class like so:

```
use Illuminate\Database\Eloquent\Model;
use KFoobar\Uuid\Traits\HasUuid;

class Post extends Model
{
    use HasUuid;
}
```

This will automatically generate a UUID for each new model instance.

Contributing
------------

[](#contributing)

We encourage contributions from the community! Whether it's improving the code, fixing bugs, or enhancing documentation, your input is valuable.

License
-------

[](#license)

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

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

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

Total

4

Last Release

839d ago

### Community

Maintainers

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

---

Top Contributors

[![KFoobar](https://avatars.githubusercontent.com/u/420690?v=4)](https://github.com/KFoobar "KFoobar (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[aglipanci/laravel-eloquent-case

Adds CASE statement support to Laravel Query Builder.

115157.2k](/packages/aglipanci-laravel-eloquent-case)

PHPackages © 2026

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