src/helpers/StringHelper.php
public static function toKebabCase(string $string, string $glue = '-', bool $lower = true, bool $removePunctuation = true): string
    {
        $words = self::_prepStringForCasing($string, $lower, $removePunctuation);

        return implode($glue, $words);
    }
public static function toKebabCase(string $string, string $glue = '-', bool $lower = true, bool $removePunctuation = true): string
    {
        $words = self::_prepStringForCasing($string, $lower, $removePunctuation);

        return implode($glue, $words);
    }
public static function toKebabCase ( string $ string , string $ glue = '-' , bool $ lower = true , bool $ removePunctuation = true ) : string { $ words = self :: _prepStringForCasing ( $ string , $ lower , $ removePunctuation ) ; return implode ( $ glue , $ words ) ; }
kebab-cases a string.

@param string $string The string
@param string $glue The string used to glue the words together (default is a hyphen)
@param bool $lower Whether the string should be lowercased (default is true)
@param bool $removePunctuation Whether punctuation marks should be removed (default is true)
@return string The kebab-cased string
@see toCamelCase()
@see toPascalCase()
@see toSnakeCase()
kebab - cases a string .