k-ko / strings-normalizer
Helper to normalize strings
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/k-ko/strings-normalizer
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^5.3
This package is auto-updated.
Last update: 2025-10-06 04:24:50 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