PHPackages                             integrated/slug-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. integrated/slug-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

integrated/slug-bundle
======================

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

0.7(8y ago)13.3k3MITPHPPHP &gt;=5.4

Since Feb 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/integratedfordevelopers/integrated-slug-bundle)[ Packagist](https://packagist.org/packages/integrated/slug-bundle)[ Docs](http://www.integratedfordevelopers.com)[ RSS](/packages/integrated-slug-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (16)Used By (3)

IntegratedSlugBundle
====================

[](#integratedslugbundle)

Provides a slugger which can generate a slug from a string and event listeners to auto-generate slugs on chosen fields

Requirements
------------

[](#requirements)

- See the require section in the composer.json

Documentation
-------------

[](#documentation)

- [Integrated for developers website](http://www.integratedfordevelopers.com "Integrated for developers website")

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

[](#installation)

This bundle can be installed following these steps:

### Install using composer

[](#install-using-composer)

```
$ php composer.phar require integrated/slug-bundle:~0.3

```

### Enable the bundle

[](#enable-the-bundle)

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Integrated\Bundle\SlugBundle\IntegratedSlugBundle()
        // ...
    );
}

```

Example
-------

[](#example)

```
use Doctrine\ODM\MongoDB\Mapping\Annotations as ODM;
use Integrated\Bundle\SlugBundle\Mapping\Annotations\Slug;

class Article
{
    /**
     * @var string
     * @ODM\String
     */
    protected $title;

    /**
     * @var string
     * @ODM\String
     * @Slug(fields={"title"})
     */
    protected $slug;

    ...
}

```

### Multiple fields

[](#multiple-fields)

```
@Slug(fields={"title", "anotherField"})

```

### Custom seperator

[](#custom-seperator)

```
 @Slug(fields={"title"}, seperator="_")

```

### Custom method to generate slug

[](#custom-method-to-generate-slug)

```
@Slug(fields={"getSlug"})

```

License
-------

[](#license)

This bundle is under the MIT license. See the complete license in the bundle:

```
LICENSE

```

Contributing
------------

[](#contributing)

Pull requests are welcome. Please see our [CONTRIBUTING guide](http://www.integratedfordevelopers.com/contributing "CONTRIBUTING guide").

About
-----

[](#about)

This bundle is part of the Integrated project. You can read more about this project on the [Integrated for developers](http://www.integratedfordevelopers.com "Integrated for developers") website.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~89 days

Recently: every ~52 days

Total

9

Last Release

3184d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5710731?v=4)[Integrated Publishing Solutions](/maintainers/integrated)[@integrated](https://github.com/integrated)

---

Top Contributors

[![marijnotte](https://avatars.githubusercontent.com/u/6791447?v=4)](https://github.com/marijnotte "marijnotte (7 commits)")[![koenprins](https://avatars.githubusercontent.com/u/4244625?v=4)](https://github.com/koenprins "koenprins (6 commits)")[![jansanne](https://avatars.githubusercontent.com/u/1027048?v=4)](https://github.com/jansanne "jansanne (2 commits)")[![johanliefers](https://avatars.githubusercontent.com/u/12084685?v=4)](https://github.com/johanliefers "johanliefers (2 commits)")[![integratedforpublishers](https://avatars.githubusercontent.com/u/6708931?v=4)](https://github.com/integratedforpublishers "integratedforpublishers (1 commits)")[![joenivl](https://avatars.githubusercontent.com/u/1433653?v=4)](https://github.com/joenivl "joenivl (1 commits)")

---

Tags

slugIntegrated

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/integrated-slug-bundle/health.svg)

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

###  Alternatives

[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)[voku/urlify

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

254.1M7](/packages/voku-urlify)[keyvanakbary/slugifier

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

68187.9k4](/packages/keyvanakbary-slugifier)[wazum/sluggi

TYPO3 extension for URL slug management with inline editing, auto-sync, locking, access control, and redirects

39488.5k](/packages/wazum-sluggi)[internetgalerie/ig-slug

Rebuild URL slugs

12861.7k2](/packages/internetgalerie-ig-slug)

PHPackages © 2026

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