One down-side of our framework right now is that we need to copy and paste the code in front.php each time we create a new website. 40 lines of code is not that much, but it would be nice if we could wrap this code into a proper class.
It would bring us better reusability and easier testing to name just a few benefits.
If you have a closer look at the code, front.php has one input, the Request, and one output, the Response.
Our framework class will follow this simple principle: the logic is about creating the Response associated with a Request.