PHPackages                             webpatser/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. webpatser/laravel-uuid

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webpatser/laravel-uuid
======================

Laravel integration for webpatser/uuid - High-performance drop-in UUID replacements (15% faster than Ramsey). Provides Str macros, HasUuids trait, facades, and casts. RFC 4122/9562 compliant.

v7.0.0(1mo ago)1.8k17.3M↓14.9%15120MITPHPPHP ^8.5

Since Sep 14Pushed 1mo ago27 watchersCompare

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

READMEChangelog (1)Dependencies (10)Versions (36)Used By (20)

Laravel UUID Integration
========================

[](#laravel-uuid-integration)

[![Total Downloads](https://camo.githubusercontent.com/47c336629d3a6ab9362d033987fde397033bc8a8e227d1d11767b51fb4e234ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7765627061747365722f6c61726176656c2d757569642e737667)](https://packagist.org/packages/webpatser/laravel-uuid)[![PHP Version](https://camo.githubusercontent.com/fc6329194de32b62c58812c2d79e18372559bab15012db8f4a1f8da8abf5ecb3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7765627061747365722f6c61726176656c2d757569642e737667)](https://packagist.org/packages/webpatser/laravel-uuid)[![Laravel Version](https://camo.githubusercontent.com/b595ffc2800505797c7cccd6ad553c2ac96091009c9c98fbe4a5ca707dbd1367/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c61726176656c2d25354531332e302d7265642e737667)](https://packagist.org/packages/webpatser/laravel-uuid)[![License](https://camo.githubusercontent.com/8267240990c83367e9af49741aed9af6901dcb806734125ecf1f7a9502b2d4a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7765627061747365722f6c61726176656c2d757569642e737667)](https://packagist.org/packages/webpatser/laravel-uuid)

Laravel package for generating and working with UUIDs. Automatic UUID model keys, validation rules, and Eloquent support.

Installation
------------

[](#installation)

```
composer require webpatser/laravel-uuid
```

**Requirements:** PHP 8.5+, Laravel 13.x

Quick Start
-----------

[](#quick-start)

```
use Illuminate\Support\Str;
use Webpatser\LaravelUuid\HasUuids;

// High-performance UUID generation
$uuid = Str::fastUuid();                // 15% faster than Str::uuid()
$ordered = Str::fastOrderedUuid();      // Database-optimized

// Eloquent model integration
class User extends Model
{
    use HasUuids; // Automatic UUID generation
}
```

Documentation
-------------

[](#documentation)

For complete documentation, examples, and API reference, visit:

****

License
-------

[](#license)

MIT License.

###  Health Score

78

—

ExcellentBetter than 100% of packages

Maintenance88

Actively maintained with recent releases

Popularity73

Solid adoption and visibility

Community46

Growing community involvement

Maturity92

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 84.7% 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 ~138 days

Recently: every ~47 days

Total

34

Last Release

59d ago

Major Versions

3.0.2 → 4.02020-12-14

2.0.x-dev → 4.0.22023-05-19

4.0.2 → v5.0.02025-09-10

v5.1.2 → v6.0.02025-09-10

v6.2.1 → v7.0.02026-03-20

PHP version history (6 changes)1.0PHP &gt;=5.3.0

3.0PHP ^7.0

4.0PHP ^7.0|^8.0

v5.0.0PHP ^8.0

v5.1.0PHP ^8.2

v7.0.0PHP ^8.5

### Community

Maintainers

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

---

Top Contributors

[![webpatser](https://avatars.githubusercontent.com/u/25720?v=4)](https://github.com/webpatser "webpatser (100 commits)")[![KuroThing](https://avatars.githubusercontent.com/u/18753877?v=4)](https://github.com/KuroThing "KuroThing (4 commits)")[![freezy-sk](https://avatars.githubusercontent.com/u/661637?v=4)](https://github.com/freezy-sk "freezy-sk (2 commits)")[![srjlewis](https://avatars.githubusercontent.com/u/56001?v=4)](https://github.com/srjlewis "srjlewis (2 commits)")[![milanowicz](https://avatars.githubusercontent.com/u/1786103?v=4)](https://github.com/milanowicz "milanowicz (2 commits)")[![samnela](https://avatars.githubusercontent.com/u/1852108?v=4)](https://github.com/samnela "samnela (1 commits)")[![vinicius73](https://avatars.githubusercontent.com/u/1561347?v=4)](https://github.com/vinicius73 "vinicius73 (1 commits)")[![vtek21](https://avatars.githubusercontent.com/u/36813?v=4)](https://github.com/vtek21 "vtek21 (1 commits)")[![rankarpan](https://avatars.githubusercontent.com/u/9264092?v=4)](https://github.com/rankarpan "rankarpan (1 commits)")[![apiruknetway](https://avatars.githubusercontent.com/u/49223076?v=4)](https://github.com/apiruknetway "apiruknetway (1 commits)")[![Omranic](https://avatars.githubusercontent.com/u/406705?v=4)](https://github.com/Omranic "Omranic (1 commits)")[![a3020](https://avatars.githubusercontent.com/u/1431100?v=4)](https://github.com/a3020 "a3020 (1 commits)")[![russianryebread](https://avatars.githubusercontent.com/u/747085?v=4)](https://github.com/russianryebread "russianryebread (1 commits)")

---

Tags

laravel-uuidlaravel-validationphpuuidlaravelperformanceuuidfacaderamseymacrocastrfc4122replacementrfc9562hasuuids

###  Code Quality

TestsPest

### Embed Badge

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

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

###  Alternatives

[madewithlove/laravel-nova-uuid-support

Adds uuid and other string identifier support to Laravel Nova

28132.9k](/packages/madewithlove-laravel-nova-uuid-support)

PHPackages © 2026

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