PHP

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.

W

webpatser

Dernière activité 2 juil. 2026
webpatser/laravel-uuid

1,8 k

étoiles

149

forks

0

issues ouvertes

laravel-uuidlaravel-validationphpuuid

Ce README est souvent en anglais.

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.

Projets similaires

This package allows you to easily work with UUIDs in your Laravel models

PHP
Mmichaeldyrynda
484 étoiles53

A PHP library for generating universally unique identifiers (UUIDs).

PHPguididentifiersphp
Rramsey
12,6 k étoiles532

Generate RFC-compliant UUIDs in JavaScript

TypeScript
Uuuidjs
15,3 k étoiles983