fbeen/uniqueslugbundle
fbeen/uniqueslugbundle is a Symfony bundle that generates unique, URL-friendly slugs for Doctrine entities. It helps prevent duplicate slugs, supports SEO-friendly URLs, and integrates with entity lifecycle events for automatic slug creation and updates.
fbeen/uniqueslugbundle is a Symfony bundle built around Doctrine entities. For a Laravel/Eloquent product, integration cost is effectively a rewrite, which removes the "buy" case almost entirely.Only under narrow, mostly historical conditions:
Look elsewhere — or build — if any of the following apply:
To executives (one paragraph): Slug generation looks trivial but sits directly on our SEO surface and our editorial workflow — bad URL decisions cost us search rankings and break inbound links. We evaluated a third-party package for this; it turns out to be a Symfony-only component, last updated in 2019, with essentially zero adoption, so adopting it would mean carrying an unmaintained dependency in a customer-facing path with no security response. The capability itself is small — roughly one to two engineering days — so the recommendation is to build it in-house, which costs less than the integration risk and lets us own the rules that matter: stable URLs after publish, automatic redirects on rename, and safe uniqueness under concurrent writes. Decision requested: approve in-house build; do not take a dependency for this.
To engineering (summary): Treat the package as a design reference only. The pattern worth borrowing is uniqueness enforced for both entities and routes, with suffix-based collision resolution. What we must add beyond it: a database-level unique index with retry on conflict, persisted (not derived) slugs for published content, an explicit rename → 301 redirect map, transliteration policy for non-Latin titles, and tenant scoping if we go multi-tenant. Scope estimate: ~1–2 days plus tests; the redirect-map work is the bulk of it and is the part with real product value.
How can I help you explore Laravel packages today?