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

Slugify Bundle Laravel Package

zenstruck/slugify-bundle

Deprecated Symfony2 bundle integrating cocur/slugify. Provides a zenstruck.slugify service and optional Twig slugify filter, with configurable mode (iconv/array) and basic settings for separator and empty-value replacements.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature Development: Enables seamless URL-friendly slug generation for content (e.g., blog posts, products, or CMS pages) without manual intervention, reducing developer overhead.
  • Roadmap Alignment: Supports a "build vs. buy" decision for teams needing slugification in Symfony2 apps, especially if legacy codebase relies on Symfony2 (though deprecated—see alternatives).
  • UX/SEO Improvements: Automates slug creation for dynamic content, improving URL readability and SEO (e.g., /blog/hello-world vs. /blog/post?id=123).
  • Consistency: Standardizes slug formatting across the app (e.g., hyphen vs. underscore separators, handling special characters).
  • Legacy Migration: Useful for maintaining older Symfony2 projects where upgrading to Symfony 4+ (where cocur/slugify is natively supported) isn’t immediate.

When to Consider This Package

  • Adopt if:

    • Your app is Symfony2-based and slug generation is a manual, error-prone process.
    • You need quick integration with minimal setup (Twig filter + service).
    • Your team lacks time/resources to build a custom slugifier or upgrade to Symfony 4+.
    • You’re okay with maintenance risks (package is deprecated; see alternatives below).
  • Look elsewhere if:

    • You’re using Symfony 4+ or 5+: Use cocur/slugify directly (includes Symfony bundle).
    • You need active maintenance: This package hasn’t been updated since 2013.
    • You require advanced customization (e.g., locale-specific rules, complex replacements) beyond basic slugification.
    • Your stack is non-Symfony: Consider standalone libraries like cocur/slugify or spatie/slugifiable.
    • You prioritize security: Deprecated packages may lack compatibility with newer PHP/Symfony versions.

How to Pitch It (Stakeholders)

For Executives:

"This package automates the creation of clean, SEO-friendly URLs (slugs) for our content—like turning ‘Hello World!’ into /hello-world—without manual coding. It’s a low-effort way to improve user experience and search rankings, especially for blogs or e-commerce. While it’s a legacy solution for Symfony2, it’s a quick fix if we’re not ready to upgrade. The trade-off? Minimal maintenance risk since it’s a one-time setup."

For Engineers:

*"The ZenstruckSlugifyBundle integrates the cocur/slugify library into Symfony2 with two key features:

  1. Service: Programmatically generate slugs in PHP (e.g., $slugify->slugify('Hello World!')hello-world).
  2. Twig Filter: Slugify strings directly in templates (e.g., {{ 'Title'|slugify }}). It’s lightweight (no heavy dependencies) and configurable (custom separators, empty-value handling). However, it’s deprecated—if we’re on Symfony2, we should evaluate the risks. For new projects, we’d use cocur/slugify directly. For legacy apps, this is a viable stopgap until we upgrade."*

Key Ask:

  • "Do we need this for a specific feature (e.g., CMS URLs)? If so, we can scope it to that module."
  • "Should we pair this with a deprecation plan to migrate to cocur/slugify in 6–12 months?"
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.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime