webpatser/uuid
Pure PHP UUID generator/validator for RFC 4122 and RFC 9562. Create UUID v1/3/4/5/6/7/8, nil UUIDs, import and validate strings, compare UUIDs, and access string/hex/bytes/URN/version/variant/time properties.
uuid cast) and middleware for token generation.Adopt if:
ramsey/uuid, with 500K+ UUIDs/sec for v7, critical for high-throughput APIs.Uuid::generate(5, 'example.com', Uuid::NS_DNS)).Look elsewhere if:
ramsey/uuid or ext-uuid).ramsey/uuid for stability).ramsey/uuid or implement custom mocks).ramsey/uuid or custom logic).For Executives: "This package enables scalable, globally distributed systems by replacing unreliable sequential IDs with industry-standard UUIDs, critical for our multi-region SaaS platform. UUIDv7 delivers 40% faster database indexing in distributed environments, while UUIDv4 ensures security for auth tokens and API keys. It’s dependency-free, MIT-licensed, and optimized for performance, reducing long-term costs and technical debt. This aligns with our roadmap to support federated identity systems, cross-database compatibility, and compliance with privacy regulations without vendor lock-in. The built-in SQL Server GUID support eliminates integration headaches with legacy systems."
For Engineering Leaders: "webpatser/uuid provides a high-performance, RFC 9562-compliant solution tailored for Laravel with key advantages:
ramsey/uuid for v4/v7 generation, critical for high-throughput systems like APIs or event-driven architectures.Uuid::generate() in tests). Ideal for new projects or migrations where performance and compliance are priorities."*For Developers:
"This package simplifies UUID generation and validation in Laravel with a clean, static API and modern PHP features (e.g., readonly properties, match expressions). Key perks:
Uuid::v4() or Uuid::v7() for random/time-ordered IDs.Uuid::validate() and Uuid::compare() for robust error handling.Uuid::v7() for database IDs and Uuid::v4() for auth tokens. Add a Uuid facade for cleaner syntax: use Webpatser\Uuid\Uuid as Uuid;."*How can I help you explore Laravel packages today?