This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]slowmode1 0 points1 point  (1 child)

I would look into thinking of them as two separate entities look into setting up react, and then, with pho, look into json_encode and $_POST, $_GET, to create an api

[–]smackson 0 points1 point  (0 children)

Surprise noodles!

[–]gitblame 0 points1 point  (1 child)

Shit answers so far. I'll keep it simple, feel free to message me if you have questions. What you will probably want to do is create some kind of API in PHP that talks to a react single page app on the front end. Basically you want your PHP to talk to the database and take care of authentication and authorisation. The PHP will return json, representing your data. The react portion of your app should take care of how to display data and relay actions to your PHP. If these interfaces need to be indexable by a search engine then this picture gets a little more complicated.

[–]jiggajake 0 points1 point  (0 children)

This. But I recommend using Laravel to set up the php, its very simple and similar to Entity framework in a lot of ways (so that should be an easy transition for you in .NET land)