I've started to rewrite the WebAdmin using the Slim 4 framework.
I know it's a bit crazy to do, but so far, in a few days, I've managed to get the Dashboard page working.
Have a look here, Pihole-Admin on Slim4
I'm trying to not touch the javascript yet, only to update some paths for calls.