Common php interfaces and classes