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,087,731
1,801
| Install | |
|---|---|
composer require webpatser/laravel-uuid |
|
| Latest Version: | v7.0.1 |
| PHP: | ^8.5 |
| License: | MIT |
| Last Updated: | Jul 2, 2026 |
| Links: | GitHub · Packagist |
Maintainer: webpatser
Laravel UUID Integration
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
gbuckingham89/eloquent-uuid
A simple package for using UUID's (UUID4) with Laravel's Eloquent.
4,787
1
cline/strongly-typed-id
Strongly-typed ID value objects for PHP with support for UUID, ULID, NanoID, GUI...
6,691
0
vlados/laravel-blade-crawler-detect
Boost Lighthouse and PageSpeed scores by hiding cookie banners, chat widgets and...
5,439
0
bvanhoekelen/performance
PHP performance tool analyser your script on time, memory usage and db query. Su...
889,298
521