jawira/case-converter

View on GitHub
docs/naming-conventions.md

Summary

Maintainability
Test Coverage
Naming conventions
==================

Naming conventions are also referred as:

- Naming style
- Case convention

Reference matrix
----------------

|                   | 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 case<br>Pascal case | - | -             |

Description table (wip)
-----------------

| 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     |               |       |       |

Resources
---------

- <https://dev.to/prahladyeri/underscores-camelcasing-and-pascalcasing-the-three-naming-conventions-every-programmer-should-be-aware-of-3aed>
- <https://en.wikipedia.org/wiki/Letter_case>
- <https://en.wikipedia.org/wiki/Naming_convention_(programming)>