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-11-06 08:14:02 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');