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.
18,666,700 1,798
Install
composer require webpatser/laravel-uuid
Latest Version:v7.0.1
PHP:^8.5
Laravel:13
Older releases:11 · 12
License:MIT
Last Updated:Jul 2, 2026
Links: GitHub  ·  Packagist
Maintainer: webpatser

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.

Related Packages

imanghafoori/smart-realtime-facades

Real-time facades with IDE auto-completion.

475,344 33
alhaji-aki/laravel-uuid

Trait to generate uuid when creating models

3,962 2
nauvalazhar/facade-please

Laravel 5 Facade Generator

566 2
holidays/holidays

supply a festival and holiday package

6 0
stayallive/laravel-eloquent-uuid

Generate UUID for a Laravel Eloquent model attribute.

70,945 4

Version History

Version Released PHP Laravel License
v7.0.1 ^8.5 ^13.0 MIT
v7.0.0 ^8.5 ^13.0 MIT
v6.2.1 ^8.2 ^11.0|^12.0|^13.0 MIT
v6.2.0 ^8.2 ^11.0|^12.0 MIT
v6.1.0 ^8.2 ^11.0|^12.0 MIT