Plugin-based admin PHP middleware