phpexperts/conciseuuid
ConciseUUID is a PHP package for generating compact, URL-safe UUIDs. It encodes standard UUIDs as shorter Base62 strings, cutting identifier length for URLs, databases, and APIs while preserving uniqueness. Simple API works in Laravel or any PHP project.
id fields look like to external consumers: opaque and non-enumerable (defeats IDOR-style scraping and competitor enumeration) while staying short enough to paste in chat, print in a QR code, or read over the phone.HasUuids and HasUlids; this package is a small trait-plus-model. The real question is "vendor ~100 LOC, adopt a dependency, or use what's already in the box" — the package is one candidate in that comparison, not a foregone conclusion.Consider it when:
Look elsewhere when:
HasUlids/HasUuids likely covers the need without a third-party dependency. This is the strongest counter-argument and should be checked first.app/Concerns the low-risk path.For executives: "We can make every customer-facing ID about 40% shorter and non-guessable, at essentially zero cost, by choosing our identifier format before we ship the schema. It's a small technical decision with a long tail — changing it afterward means rewriting URLs, redirects, exports, and partner integrations. Cost is a few engineering hours. Risk is low: the library is MIT and small enough that we can own the code outright if the maintainer walks away. This is not a roadmap item; it's a convention we settle during schema design."
For engineering: "Evaluate against Laravel's built-in ULID/UUID traits before adding the dependency — on Laravel 9+ this may be unnecessary. If we do adopt, vendor the trait rather than pinning a 9-star package, add collision and uniqueness tests, and assert ID length and format in the API contract test suite so the format can't drift silently. Decide now, while the schema is empty."
The ask: a 30-minute decision in the current design review — adopt, vendor, or use the framework's built-in trait — not a sprint of its own.
How can I help you explore Laravel packages today?