k-ko / strings-normalizer
Helper to normalize strings
v1.0.1
2021-07-05 18:06 UTC
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^5.3
This package is auto-updated.
Last update: 2025-01-06 02:34:36 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