> I know it would have absolutely happened to the awful, framework-less PHP I was writing back in 2012.
If you were writing framework-less PHP in 2012, you were doing it wrong. There were major frameworks well before that point: CakePHP (Apr 2005), Symfony (Oct 2005), CodeIgniter (2006) and even Laravel (2011).