PHP: Reusable, Extendable, Testable Coding