k-ko/strings-normalizer

Helper to normalize strings

Maintainers

Package info

github.com/K-Ko/Strings-Normalizer

pkg:composer/k-ko/strings-normalizer

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

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

This package is auto-updated.

Last update: 2026-03-06 05:23:22 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