Skip to content
RubenJ01 edited this page Apr 3, 2026 · 2 revisions

URL-safe slugs from arbitrary strings: transliteration, locales, custom mappings, length limits, and configurable dividers.

Start here

Quick example

use Rjds\PhpSlugify\SluggerFactory;

$slugger = SluggerFactory::create();
echo $slugger->slugify('Hello World 2026!');

Outputs: hello-world-2026

Packagist: rjds/php-slugify · Repo: github.com/RubenJ01/php-slugify

Clone this wiki locally