cocur/slugify
Converts a string to a slug. Includes integrations for Symfony, Silex, Laravel, Zend Framework 2, Twig, Nette and Latte. observed · 2026-08-28
Health v2 · maintenance only
54/100
- Activity 54
- Release rhythm 27
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 221.5
- age_days: 5276
- days_rel: 279
- days_push: 279
- n_releases_24m: 3
Adoption not part of the score
2899 stars · 245 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP library that converts strings into URL-friendly slugs, with transliteration rules for dozens of languages. It ships integrations for Symfony, Laravel, Twig, Nette, Latte, Zend Framework and other PHP ecosystems.
Use cases
- generate url slugs from titles in php
- transliterate accented characters for seo-friendly urls
- slugify strings in symfony or laravel
- create seo-friendly urls from article titles
- convert unicode text to ascii slugs
- add a slug twig filter to templates
When to choose
- you need battle-tested slug generation in PHP with framework integrations
- your content contains non-Latin or accented characters needing transliteration
- you want a dependency-free, PSR-4 compatible library
When to avoid
- your project is not in PHP
- you need full Unicode-to-ASCII transliteration beyond the supported languages
- you need bidirectional slug-to-text restoration
Facets
library · maturity stable
serialization internationalization web-development developer-tools php cross-platform slugify url-slugs transliteration symfony laravel twig nette localization
1 source
- readme: https://github.com/cocur/slugify · fetched 2026-08-28 · ae7eb4a242c0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| cocur/slugify | main | 54 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem