jawira/case-converter
Convert strings between common case styles (camelCase, snake_case, kebab-case, PascalCase, etc.) with a simple PHP API. Handy for slugs, variable naming, and text normalization, supporting robust Unicode-aware conversions and formatting options.
Naming conventions are also referred as:
| Lower case | Title case | Upper case | Sentence case | |
|---|---|---|---|---|
_ (underscore) |
Snake case | Ada case | Macro case | - |
- (dash) |
Kebab case | Train case | Cobol case | - |
. (dot) |
Dot notation | - | - | - |
␣ (space) |
Lower case | Title case | Upper case | Sentence case |
(empty string) |
- | Camel casePascal case | - | - |
| Convention name | Description | Usage | AKA |
|---|---|---|---|
| Camel case | PHP method names | Camel caps, Medial capitals, Lower camel case | |
| Pascal case | PHP class names | Upper camel case | |
| Snake case | All letters in lower-case separated with a _ (underscore) |
PHP functions | |
| Ada case | |||
| Macro case | PHP constants | ||
| Kebab case | |||
| Train case | |||
| Cobol case | |||
| Dot notation | |||
| Lower case | |||
| Title case | |||
| Upper case | |||
| Sentence case |
How can I help you explore Laravel packages today?