# cocur/slugify

Converts a string to a slug. Includes integrations for Symfony, Silex, Laravel, Zend Framework 2, Twig, Nette and Latte.

Repository: https://github.com/cocur/slugify
Canonical: https://ross.abutalabs.com/products/slugify
Language: PHP
License: MIT
License Family: permissive
Topics: php, twig, slugify, symfony, twig-extension, latte, nette, silex, language, zend-framework
Last push: 2025-11-27T18:58:45+00:00

## Health v2 (maintenance only)
Score: 54/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 54, release rhythm 27, longevity 100
- inputs: {"age_days": 5276, "days_push": 279, "days_rel": 279, "gap_med": 221.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2899, forks 245 (observed 2026-08-28T04:07:28.840652+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: serialization, internationalization
- domain: web-development, developer-tools
- platform: php, cross-platform
- tags: slugify, url-slugs, transliteration, symfony, laravel, twig, nette, localization

## Member repositories
- cocur/slugify (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:28.840652+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:35:11.354329+00:00, confidence not recorded.
  - readme: https://github.com/cocur/slugify (fetched 2026-08-28T04:07:28.840652+00:00, sha ae7eb4a242c0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
