Coding Standards

Commentics adheres to the PSR-1 and PSR-2 coding standards, as set out by FIG (Framework Interoperability Group) and its members. By following these standards, it helps make it easier for other developers who follow them to work on Commentics. The standards set out things such as the casing of method names, the position of braces and how to indent lines (4 spaces).

The below aims to address areas where the PSR standards intentionally avoid any recommendations.


Properties, as well as variables, should be written using underscore case. For example:

    						private $form_enabled = true;