src/helpers/StringHelper.php
public static function toSnakeCase(string $string): string
    {
        $words = self::_prepStringForCasing($string);

        return implode('_', $words);
    }
public static function toSnakeCase(string $string): string
    {
        $words = self::_prepStringForCasing($string);

        return implode('_', $words);
    }
public static function toSnakeCase ( string $ string ) : string { $ words = self :: _prepStringForCasing ( $ string ) ; return implode ( '_' , $ words ) ; }
snake_cases a string.

@param string $string The string
@return string
@see toKebabCase()
@see toCamelCase()
@see toPascalCase()
snake_cases a string .