Encapsulate it within a class (follow OOP kids) and also create header files in the /includes
Encapsulate it within a class (follow OOP kids) and also create header files in the /includes