PHP Code Standards

From PM Wiki
Revision as of 03:10, 26 October 2022 by Aaron (talk | contribs) (→‎1.b Classes)
Jump to navigation Jump to search

Popular Marketing Code Standards

1. Variable Naming Conventions

1.a Local Variables

Local variable names should all be lower case, ex.

email

If the local variable name is made up of multiple words, use snake case, ex.

email_address

1.b Functions

Function names should all be lowercase, ex.

update

If the function name is made up of multiple words, use snake case, ex.

update_by_id

1.c Classes

Class names should all be capitalized, ex.

Vertical

If the class name is made up of multiple words, use snake case, but preserving the first word capitalization, ex.

Vertical_groups