danilovl/hashids-bundle
Symfony bundle integrating Hashids for encoding/decoding IDs. Configure salt, alphabet, and minimum hash length. Optional ParamConverter/Request converter automatically decodes route/request parameters so controllers can receive entities by decoded IDs.
/product/abc123 instead of /product/42), improving UX and security./invoices/abcx987).Hashids directly for encoding/decoding flexibility).Hashids for latency).Hashids library instead).For Executives:
"This bundle lets us securely obscure sensitive IDs in URLs and logs with minimal effort—think of it as a ‘password manager’ for your database keys. For example, we can replace /users/123 with /users/abcx987 without sacrificing functionality. It’s a drop-in solution that reduces reverse-engineering risks, aligns with privacy regulations, and saves dev time. The underlying Hashids library is battle-tested, and the bundle integrates seamlessly with Symfony’s ecosystem. Upfront cost: near-zero (MIT license); ongoing cost: none. ROI: fewer security incidents and cleaner APIs."
For Engineers:
*"This is a lightweight Symfony wrapper for Hashids that handles the boilerplate of ID obfuscation. Key benefits:
/invoice/{hashid} → InvoiceEntity).Hashids (v5+) and Symfony (v8+) standards.
Tradeoff: Limited to one-way hashing (no decoding without the salt), but that’s intentional for security. If you need more control, use Hashids directly. Ready to prototype in <30 minutes."*How can I help you explore Laravel packages today?