New Page  |  Edit Page


Coding Standards

Variable Naming Standards

There is no definitive naming convention in PHP, and they differ by framework:

So: Use whatever your framework uses or create your own naming convention.

At least for function names and class methods, there is a one thing to consider, but some frameworks discard it: PHP is case insensitive in that case, so aTonalFunction() atonalFunction() &?php &?= StudlyCaps UPPER_CASE camelCase namespace use abstract final static must be declared after the visibility.

BC Government API Guidelines

Published by the Technical Assets Working Group under the BC Data Council

Purpose : The purpose of these guidelines is to promote consistency and provide guidance around the use of Application Programming Interfaces (APIs) across the BC government, and to enable exchange and integration of data between systems, agencies, businesses and citizens.