PHP Classes

File: docs/naming-conventions.md

Recommend this page to a friend!
  Classes of jawira   PHP Case Convert   docs/naming-conventions.md   Download  
File: docs/naming-conventions.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP Case Convert
Convert strings between many naming conventions
Author: By
Last change:
Date: 4 years ago
Size: 2,050 bytes
 

Contents

Class file image Download

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