PHPackages                             danielcosta/eloquent-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. danielcosta/eloquent-uuid

Abandoned → [alsofronie/eloquent-uuid](/?search=alsofronie%2Feloquent-uuid)ArchivedLibrary[Database &amp; ORM](/categories/database)

danielcosta/eloquent-uuid
=========================

Eloquent UUID Model

1.1.1(9y ago)09MITPHPPHP &gt;=5.5

Since Apr 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/danielcosta/eloquent-uuid)[ Packagist](https://packagist.org/packages/danielcosta/eloquent-uuid)[ RSS](/packages/danielcosta-eloquent-uuid/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Eloquent UUID Model
===================

[](#eloquent-uuid-model)

If you want your eloquent models to have the primary key as an UUID instead of the default incremental integer, you must use this abstract model on top of your models to convert them to an *Eloquent UUID Model*.

Install
-------

[](#install)

Just require this package within your composer:

```
composer require danielcosta/eloquent-uuid:^1.0

```

Sample usage
------------

[](#sample-usage)

Using *Eloquent UUID Model* is as simple as just extending the abstract `UUIDEloquentModel`.

```
use DCST\Database\Eloquent\Models\UUIDEloquentModel;

class Product extends UUIDEloquentModel
{
    // your class model
}

$product = new Product;
$product->name = 'My Awesome Product';
$product->save();

var_dump($product->id); // 55d53549-e772-4765-9467-5a75d33cbf6a
```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3394d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

eloquentlaravelmodeluuidmodeleloquentuuid

### Embed Badge

![Health badge](/badges/danielcosta-eloquent-uuid/health.svg)

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.0M88](/packages/mongodb-laravel-mongodb)[dyrynda/laravel-model-uuid

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

4833.0M9](/packages/dyrynda-laravel-model-uuid)[prettus/l5-repository

Laravel 8|9|10|11|12|13 - Repositories to the database layer

4.2k11.2M154](/packages/prettus-l5-repository)[spatie/laravel-translatable

A trait to make an Eloquent model hold translations

2.4k25.2M497](/packages/spatie-laravel-translatable)[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k5.0M31](/packages/tucker-eric-eloquentfilter)

PHPackages © 2026

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