Simple functions and classes to simplify our PHP