Coding Standard (PHP) - WhiteCloud27/Admission-Management-System GitHub Wiki
Variable name should follow Camel Casing.
Example:
studentName, studentRegistrationNumber.
Example:
studentName, studentRegistrationNumber.
Constants should be written in all capital letters
with underscores separating words.
Example:
MAX_OVERFLOW
Example:
MAX_OVERFLOW
Package or module name should be in lower case and short. For multiple word
variable the name should be in lower case with underscores".
Example:
my_pack
Example:
my_pack
This member order will be used.....
Constants
public const
protected const
private const
Properties
public static properties
public properties
protected static properties
protected properties
private static properties
private properties
Methods
magic methods
public static methods
public methods
protected static methods
protected methods
private static methods
private methods
Constants
public const
protected const
private const
Properties
public static properties
public properties
protected static properties
protected properties
private static properties
private properties
Methods
magic methods
public static methods
public methods
protected static methods
protected methods
private static methods
private methods
Interface name should be started with "I" as a prefix and should follow Pascal
Casing convention.
Exception Names should follow Pascal Casing convention and suffix "Error" (if the
exception actually is an error).