src/Utils.php
public static function realmNameToSlug(string $name): string
    {
        $name = \mb_strtolower($name, 'UTF-8');
        $slug = \str_replace(static::$replaceTable[0], static::$replaceTable[1], $name);
        $slug = \preg_replace(static::$regexTable[0], static::$regexTable[1], $slug);

        return \trim((string) $slug, '-');
    }
public static function realmNameToSlug(string $name): string
    {
        $name = \mb_strtolower($name, 'UTF-8');
        $slug = \str_replace(static::$replaceTable[0], static::$replaceTable[1], $name);
        $slug = \preg_replace(static::$regexTable[0], static::$regexTable[1], $slug);

        return \trim((string) $slug, '-');
    }
Returns an URL friendly version of a realm name.

@param string $name

@return string