is it 1999 again?
Are we not using this season’s fashionable programming language?
TBH I always hated PHP
First used it for real production stuff in 1999
Last time I was using it was 2014
It's great for mini one page websites with a database
Also, if you are doing your own Systems Admin it's easy to install (insecurely of course)
So, back in the day of the first Internet boom (2000-ish) it was very popular
It's ungreat for anything bigger or cleverer
React or Angular play better with more recent developments and IMHO scale better.
If you want a simple website now, then a static site with something like Gatsby or Hugo would be a better choice