I started to rewrite very monstrous (and old) web application. It runs on PHP 5.3, the design is completely mad - Models and Viewers, no controllers etc. I have been able to refactor the code to work with PHP 7, bend the autoloader to start using Composer and I want to start refactoring the core.
What I basically need right now is an application structured into framework itself , modular system and a "wrapper?" which defines the application. I would like to create the modular system and define the layers properly without needing to rethink them again in a year or so. Unfortunately I cannot start from scratch, the code itself contains a huge amount of business logic which needs to be separated into modules and this can be done only by digging into it.
HMVC is the only thing I was able to find so far, is that the right approach? I generally need a push into right direction when it comes to sources.