How to create a framework-agnostic application in PHP