You might also want to check out https://wasp-lang.dev/ - it lets you use React & Node.js (although it seems you prefer php), but you don't have to write API endpoints + everything works out-of-the-box
(disclaimer: I'm one of the main contributors to the project)
(disclaimer: I'm one of the main contributors to the project)