r/PHP • u/Ottomatica • 9h ago
Upgrading a site from PHP 5.5 to 8.x
Hey all,
I have a personal website the I built nearly 20 years ago and I would like to update it to the latest version of PHP. It's a simple website that I use to run tournaments where I basically just enter tournament parameters (dates, time locations etc,) and tournament results and it displays all of the data that people care about like schedule, results, leaderboards, historical stats etc. All the data is stored in a MySQL database.
I basically built it from scratch without an IDE.
Searching on this sub, it seems like rector may be the way to go. I do actually have PhpStorm and have configured it with composer and rector.
I guess my big question is how would you go about the update? My site is on a paid hosting platform.
I'm thinking that the best way would be to have a local host on my development PC and duplicate my website there to make updates before testing on the external host.
Thoughts?
Edit:
Thanks everyone for all the options/opinions, very helpful!