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

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

[dyrynda/laravel-model-uuid

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

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

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

591444.8k2](/packages/spiritix-lada-cache)[pdphilip/elasticsearch

An Elasticsearch implementation of Laravel's Eloquent ORM

145360.2k4](/packages/pdphilip-elasticsearch)[sebastiaanluca/laravel-boolean-dates

Automatically convert Eloquent model boolean attributes to dates (and back).

40111.7k1](/packages/sebastiaanluca-laravel-boolean-dates)

PHPackages © 2026

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