iampersistent/get-off-my-case

Convert strings to different cases

v1.2.0 2022-06-06 02:25 UTC

This package is auto-updated.

Last update: 2024-12-06 08:21:04 UTC


README

Case converters

// multipleWords
$converted = (new CamelCase)('Multiple_words');
// multiple-words
$converted = (new KebabCase)('Multiple_words');
// MultipleWords
$converted = (new PascalCase)('Multiple_words');
// multiple_words
$converted = (new SnakeCase)('multipleWords');