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.

Maintainers

👁 webpatser

Package info

github.com/webpatser/laravel-uuid

pkg:composer/webpatser/laravel-uuid

Statistics

Installs: 17 782 174

Dependents: 159

Suggesters: 0

Stars: 1 801

Open Issues: 0

v7.0.0 2026-03-20 07:36 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 575ac7bb58fe2d7b28780c9848dcdd84359ac118

  • Christoph Kempen <christoph.woop@downsized.nl>

performanceuuidlaravelfacademacrorfc4122replacementcastramseyrfc9562hasuuids


README

👁 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.