red-explosion/laravel-sqids
Laravel Sqids generates short, unique, obfuscated IDs from integer keys, keeping database IDs hidden in URLs and APIs. Includes route model binding, validation rules, and simple configuration for a seamless drop-in integration.
/orders/10432 style identifiers in customer-facing links, emails, and API resources. This is a user-visible product change (short links, cleaner share URLs) with a security-hygiene upside (no trivially enumerable IDs, less leakage of business volume to competitors).Adopt when most of these hold:
Look elsewhere when:
For executives: This is a small, low-risk library that lets us keep our current database structure while making customer-facing links and IDs short and non-sequential — cleaner share links, no leaking of order/customer volume, and no expensive primary-key migration. The v2.1.0 release is routine maintenance: it adds support for Laravel 13, so this dependency will not hold up our next framework upgrade. No breaking changes, no new infrastructure, no operational cost.
For engineering: One Composer dependency; v2.1.0 is a non-breaking minor that extends the supported framework matrix to Laravel 13.x. Before adopting, be explicit that Sqids is reversible encoding, not encryption — it must not be used for secrets or authorization tokens. Verify the cast/route-binding/validation API against our Laravel version, pin the version, and confirm bulk-encode performance if we plan to apply it to high-volume API resources. Recommend a scoped rollout (one resource type first) rather than a blanket change to all identifiers.
How can I help you explore Laravel packages today?