PHPackages                             symfony-cmf/slugifier-api - 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. symfony-cmf/slugifier-api

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

symfony-cmf/slugifier-api
=========================

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

2.1.0(5y ago)281.7M↓10.1%24MITPHPPHP ^5.6|^7.0|^8.0

Since Feb 1Pushed 5y ago5 watchersCompare

[ Source](https://github.com/symfony-cmf/slugifier-api)[ Packagist](https://packagist.org/packages/symfony-cmf/slugifier-api)[ Docs](http://cmf.symfony.com)[ RSS](/packages/symfony-cmf-slugifier-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (4)

Symfony CMF Slugifier API
=========================

[](#symfony-cmf-slugifier-api)

[![Build Status](https://camo.githubusercontent.com/6b46690662810c11429db8303afc717342e164e69d8cff26d6abecdc40f5037a/68747470733a2f2f7472617669732d63692e6f72672f73796d666f6e792d636d662f736c756769666965722d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/symfony-cmf/slugifier-api)[![Latest Stable Version](https://camo.githubusercontent.com/4189b9eecc58c28295d017501bbf5567e686f24d0f88b8a5e7947476c734104b/68747470733a2f2f706f7365722e707567782e6f72672f73796d666f6e792d636d662f736c756769666965722d6170692f76657273696f6e2e706e67)](https://packagist.org/packages/symfony-cmf/slugifier-api)[![Total Downloads](https://camo.githubusercontent.com/8b42d11953dc03392a9869b9119bc8f6b0540bf2a5f5eb09f6019c44d8e68a38/68747470733a2f2f706f7365722e707567782e6f72672f73796d666f6e792d636d662f736c756769666965722d6170692f642f746f74616c2e706e67)](https://packagist.org/packages/symfony-cmf/slugifier-api)

This package is part of the [Symfony Content Management Framework (CMF)](http://cmf.symfony.com/)and licensed under the [MIT License](LICENSE).

A "slugifier" is a function which transforms a string `such as this` into a URL-friendly string `such-as-this`. Slugifiers are also known as "urlizers".

This package does not contain a slugifier implementation, it provides a standard interface (`SlugifierInterface`) for use by third party slugifiers and a `CallbackSlugifier` that is capable of wrapping most non-implementing third-party slugifiers to the `SlugifierInterface`.

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

[](#requirements)

- See also the `require` section of [composer.json](composer.json)

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

[](#documentation)

Perhaps the best way to document this simple component is with a demonstration. You have an event subscriber which slugifies the title of a blog post:

```
