Casing
class Casing extends StringMutator (View source)
Converts string between different casing types.
Based on jawira/case-converter
.
Traits
Properties
protected | $casing | from TakesOnlyStringCasing |
Methods
static TakesOnlyStringCasing
make(StringCase|string $casing)
No description
string
mutateString(string $value)
No description
Details
__construct(StringCase|string $casing)
No description
static TakesOnlyStringCasing
ada()
Use the Ada casing.
static TakesOnlyStringCasing
camel()
Use the Camel casing.
static TakesOnlyStringCasing
cobol()
Use the Cobol casing.
static TakesOnlyStringCasing
dot()
Use the Dot casing.
static TakesOnlyStringCasing
kebab()
Use the Kebab casing.
static TakesOnlyStringCasing
lower()
Use the Lower casing.
static TakesOnlyStringCasing
macro()
Use the Macro casing.
static TakesOnlyStringCasing
make(StringCase|string $casing)
No description
final mixed
mutate(mixed $value)
Mutate the input value.
protected string
mutateString(string $value)
No description
static TakesOnlyStringCasing
pascal()
Use the Pascal casing.
protected string
resolveStringInput(mixed $value)
No description
static TakesOnlyStringCasing
sentence()
Use the Sentence casing.
static TakesOnlyStringCasing
snake()
Use the Snake casing.
static TakesOnlyStringCasing
title()
Use the Title casing.
static TakesOnlyStringCasing
train()
Use the Train casing.
static TakesOnlyStringCasing
upper()
Use the Upper casing.