spatie/laravel-binary-uuid
NOT MAINTAINED. Store UUID primary keys as optimized binary in Laravel models for faster indexing/queries (MySQL/SQLite). Provides UUID generation and Eloquent trait/scopes to encode/decode and query by UUID, plus benchmarks to compare performance.
string UUIDs with binary storage for legacy databases).michaeldyrynda/laravel-efficient-uuid.Adopt if:
Look elsewhere if:
michaeldyrynda/laravel-efficient-uuid).For Executives: "This package lets us store UUIDs as binary data in MySQL/PostgreSQL, cutting query overhead by ~30–50% in benchmarks. For high-scale systems (e.g., [Product X] with [Y] daily queries), this could reduce database costs and improve response times without major refactoring. While unmaintained, it’s a proven solution with minimal risk for our current stack. Alternatives exist, but this offers the fastest path to performance gains."
For Engineering:
*"The package replaces string UUIDs with binary storage, leveraging MySQL’s optimized handling of BINARY(16). Key benefits:
laravel-efficient-uuid are more modern but may require migration effort. Recommend evaluating with a performance test on a staging environment first."*How can I help you explore Laravel packages today?