Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Hashids Bundle Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • User Privacy & Security: Enables obfuscation of sensitive IDs (e.g., user IDs, order numbers) in URLs or public-facing systems, reducing reverse-engineering risks.
  • API & URL Design: Supports cleaner, non-sequential URLs (e.g., /product/abc123 instead of /product/42), improving UX and security.
  • Compliance Alignment: Simplifies adherence to GDPR/CCPA by masking PII in logs, URLs, or client-side interactions.
  • Roadmap Efficiency: Accelerates feature delivery for projects requiring ID obfuscation (e.g., e-commerce, SaaS dashboards) without reinventing the wheel.
  • Build vs. Buy: Justifies "buy" over custom implementation for teams lacking cryptography expertise or time to maintain a secure hashing solution.
  • Use Cases:
    • Public-facing URLs (e.g., /invoices/abcx987).
    • Audit logs or analytics where raw IDs should be hidden.
    • Multi-tenant systems needing tenant-agnostic ID masking.

When to Consider This Package

  • Avoid if:
    • Your project requires bidirectional hashing (this is one-way only; use Hashids directly for encoding/decoding flexibility).
    • You need performance-critical hashing (benchmark against native Hashids for latency).
    • Your team uses Symfony <8.0 or PHP <8.5 (compatibility constraints).
    • You prioritize customization (e.g., dynamic salt per request) over out-of-the-box simplicity.
    • Security audits demand open-source scrutiny (low stars/dependents may raise red flags; vet the underlying Hashids library instead).
  • Look elsewhere if:
    • You need built-in rate-limiting or token expiration for hashed IDs (combine with other packages).
    • Your IDs are extremely large (Hashids has practical limits; test with your max ID size).
    • You’re in a highly regulated industry (e.g., healthcare) where custom auditing of hashing logic is required.

How to Pitch It (Stakeholders)

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:

  • Zero config for basic use: Just install, set a salt, and start hashing IDs in URLs or logs.
  • ParamConverter: Automatically decodes hashed IDs from routes (e.g., /invoice/{hashid}InvoiceEntity).
  • Symfony-native: Plays well with dependency injection, config management, and testing.
  • Future-proof: Uses the latest 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."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky