- I still wanted to keep working with these two applications fluent, so I decided to share the state of the object via a dedicated object.
- The way I see it is that this sharing of a state object can reduce friction on working with PHP-JavaScript hybrid applications by removing guessing variable names and inventing new data structures.
- A while back I was working on an application where the back end is a full stack Symfony application.
- In the end we’ll pass the Twig templating engine the object as well as the serialized state.
- I was working on decoupling the front end completely by having the Symfony app serve only as an API backend.
Front end development has certainly grown up in the last few years. UI logic is increasingly being moved to the client side, but the tradit…
Continue reading “Sharing state in a Symfony hybrid with Twig, React and other JavaScript apps”