PHPackages                             zenstruck/slugify-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zenstruck/slugify-bundle

Abandoned → [cocur/slugify](/?search=cocur%2Fslugify)ArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

zenstruck/slugify-bundle
========================

Provides a slugify service and twig filter for Symfony2.

v1.1.1(12y ago)744.0k↓100%MITPHP

Since Apr 17Pushed 11y ago1 watchersCompare

[ Source](https://github.com/kbond/ZenstruckSlugifyBundle)[ Packagist](https://packagist.org/packages/zenstruck/slugify-bundle)[ Docs](http://zenstruck.com/project/ZenstruckSlugifyBundle)[ RSS](/packages/zenstruck-slugify-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

ZenstruckSlugifyBundle
======================

[](#zenstruckslugifybundle)

**DEPRECATED** in favor of [cocur/slugify](https://github.com/cocur/slugify) which now includes a [Symfony2 Bundle](https://github.com/cocur/slugify#symfony2)

This bundle provides integration of the [Slugify](https://github.com/cocur/slugify) library into Symfony2. A slugify service and twig filter is provided.

Installation
------------

[](#installation)

1. Install with composer:

    ```
    php composer.phar require zenstruck/slugify-bundle

    ```
2. Enable the bundle:

    ```
    // app/AppKernel.php

    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Zenstruck\SlugifyBundle\ZenstruckSlugifyBundle()
        );
    }
    ```

Using the service
-----------------

[](#using-the-service)

```
/** @var Cocur\Slugify\Slugify $slugify */
$slugify = $this->container->get('zenstruck.slugify');
```

Using the Twig filter
---------------------

[](#using-the-twig-filter)

```
{{ 'Hello World!'|slugify }} {# hello-world #}

{# custom space separator #}
{{ 'Hello World!'|slugify('_') }} {# hello_world #}

{# custom space separator and custom replacement for emptyValue #}
{{ '####'|slugify('_', 'non') }} {# non #}
```

Full Default Configuration
--------------------------

[](#full-default-configuration)

```
zenstruck_slugify:
    twig: true #enable twig filter
    mode: array #iconv or array mode
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~119 days

Total

3

Last Release

4532d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/707369cc916e0ea1aacbf077dcba464f611cef879f024d8944311a54a15224b3?d=identicon)[kbond](/maintainers/kbond)

---

Top Contributors

[![kbond](https://avatars.githubusercontent.com/u/127811?v=4)](https://github.com/kbond "kbond (6 commits)")[![ivoba](https://avatars.githubusercontent.com/u/471254?v=4)](https://github.com/ivoba "ivoba (1 commits)")

---

Tags

slugslugify

### Embed Badge

![Health badge](/badges/zenstruck-slugify-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/zenstruck-slugify-bundle/health.svg)](https://phpackages.com/packages/zenstruck-slugify-bundle)
```

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6737.4M62](/packages/jbroadway-urlify)[ausi/slug-generator

Slug Generator

8002.2M22](/packages/ausi-slug-generator)[keyvanakbary/slugifier

A full-featured, simple, clean and pure functional implementation for creating slugs

68187.9k4](/packages/keyvanakbary-slugifier)[voku/urlify

PHP port of URLify.js from the Django project. Transliterates non-ascii characters for use in URLs.

254.1M7](/packages/voku-urlify)[symfony-cmf/slugifier-api

Provides a basic slugifier interface to transform text into strings suitable for URLs

281.7M5](/packages/symfony-cmf-slugifier-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
