mini\Util\Str::slugify() Method

public static

Signature

public static function slugify(string $text): string

Parameters

Name Type Default Description
$text string required Documentation missing

Returns

string

Documentation

Convert a string to a URL-friendly slug

Transliterates Unicode to ASCII (e.g. "Børli" → "borli"), lowercases, replaces non-alphanumeric characters with dashes, and trims.

Source

src/Util/Str.php:19-35