PHPackages                             lucasmichot/eloquentuuid - 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. lucasmichot/eloquentuuid

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

lucasmichot/eloquentuuid
========================

Provides a unique Base62-encoded UUID representing a given state of a model instance

0.1.2(11y ago)2181MITPHPPHP &gt;=5.4.0

Since Jun 30Pushed 11y ago1 watchersCompare

[ Source](https://github.com/lucasmichot/eloquentuuid)[ Packagist](https://packagist.org/packages/lucasmichot/eloquentuuid)[ RSS](/packages/lucasmichot-eloquentuuid/feed)WikiDiscussions master Synced yesterday

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

EloquentUUID
============

[](#eloquentuuid)

Provides a unique Base62-encoded `UUID` representing a given state of a model instance.

This is particularly useful to keep track of model versions.

**Why Base62 ?**

Compared to `MD5`, a Base62 hash is shorter and the alphabet used makes it cleaner to process, when used in a shorten URL for instance, or when stored in a database.

Requirements:

- PHP &gt;= 5.4
- [Laravel 4.2](http://laravel.com/)

Package installation
--------------------

[](#package-installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `lucasmichot/eloquentuuid`.

```
"require": {
  "lucasmichot/eloquentuuid": "0.*"
}
```

Next, update Composer from the Terminal:

```
$ composer update
```

You can achieve these operations with this one-liner command :

```
$ composer require "lucasmichot/eloquentuuid:0.*"
```

Usage
-----

[](#usage)

```
use Lucasmichot\Eloquentuuid\UuidTrait;

class Post extends Eloquent
{
    use UuidTrait;

    // the code of your model comes here
}
```

Accessing the UUID :

```
$post = Post::find(1);
// update the attributes of the post

echo $post->uuid();
```

Each time the model is modified, the UUID is changed accordingly.

TODO
----

[](#todo)

- Finish documentation

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~0 days

Total

3

Last Release

4334d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8476d69514125fdd39d5d1caa9da3bff9c7a6345702b0dfd8d185c84adf924b9?d=identicon)[lucasmichot](/maintainers/lucasmichot)

---

Top Contributors

[![lucasmichot](https://avatars.githubusercontent.com/u/513603?v=4)](https://github.com/lucasmichot "lucasmichot (14 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (1 commits)")

---

Tags

laraveleloquentuuidversioning

### Embed Badge

![Health badge](/badges/lucasmichot-eloquentuuid/health.svg)

```
[![Health](https://phpackages.com/badges/lucasmichot-eloquentuuid/health.svg)](https://phpackages.com/packages/lucasmichot-eloquentuuid)
```

###  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)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)

PHPackages © 2026

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