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.3k↓22.6%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 yesterday

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 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

884d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/420690?v=4)[David Villa](/maintainers/KFoobar)[@KFoobar](https://github.com/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

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M96](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k32.6M46](/packages/kirschbaum-development-eloquent-power-joins)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)

PHPackages © 2026

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