k-ko/strings-normalizer

Helper to normalize strings

v1.0.1 2021-07-05 18:06 UTC

This package is auto-updated.

Last update: 2024-05-06 00:45:11 UTC


README

Helper to normalize strings

Methods

All methods preserves letters and numbers only.

# All lowercase, nur buchstaben und ziffern, remove spaces, underscores
public static function toLowercase(string $string): string

# All uppercase, remove spaces, underscores
public static function toUppercase(string $string): string

# lowerCamelCase
public static function toCamelCase(string $string): string

# UpperCamelCase
public static function toUpperCamelCase(string $string): string

# snake_case
public static function toSnakeCase(string $string): string

# slugify-a-string
public static function slugify(string $string): string