Comment If it works, leave it the way it is. (Score 1) 112
vi is just an editor. I actually use vim as my day to day editor. It really is vi improved. If it's the vi part you don't like, you can switch to using an IDE like VS code and add various things to support PHP if you don't like vi. I even have my VS code set up to act like vim. If you have some vi settings for code formatting, then you'd have to set up the IDE to do the same thing like spaces instead of tabs and indentation size. I've also maintained lots of custom php. If it's well written, easy to understand, and stable, I wouldn't bother moving it to a framework. It's actually nice to edit PHP without a framework in the way sometimes. On the other hand, if every change being made feels like you're using duct-tape to hold it together, then it's probably a good idea for a rewrite. A framework might help you rewrite it better. I would consider switching off of PHP for the rewrite though.