webpatser/laravel-uuid

Laravel package to generate and to validate a UUID according to the RFC 4122 standard. Only support for version 1, 3, 4 and 5 UUID are built-in.

PHP

1,798

121 commits

updated Jul 2, 2026

See the code

README

Laravel UUID Integration

Total Downloads PHP Version Laravel Version License

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

Installation

composer require webpatser/laravel-uuid

Requirements: PHP 8.5+, Laravel 13.x

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

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

https://documentation.downsized.nl/laravel-uuid

License

MIT License.

laravel-uuid
laravel-validation
php
uuid

webpatser/laravel-uuid

Laravel package to generate and to validate a UUID according to the RFC 4122 standard. Only support for version 1, 3, 4 and 5 UUID are built-in.

PHP

1,798

121 commits

updated Jul 2, 2026

See the code

README

Laravel UUID Integration

Total Downloads PHP Version Laravel Version License

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

Installation

composer require webpatser/laravel-uuid

Requirements: PHP 8.5+, Laravel 13.x

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

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

https://documentation.downsized.nl/laravel-uuid

License

MIT License.

laravel-uuid
laravel-validation
php
uuid

Project health

Overall

3.6/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

Significant stargazers

Vaibhavraj Roham

58 followers · starred Apr 2018

Hemp

542 followers · starred Jan 2015