Integrating React.js with PHP Projects
summary
Shows concrete integration: a PHP-side react-renderer library plus webpack build steps, three server-rendering choices (exec node process, v8js PHP extension, or an always-on external Node server), and a Symfony path that serializes forms into a JSON/schema representation to generate React.js forms and validation. Demonstrates Redux-style stores for shared state, a working form-generator prototype, and performance tradeoffs with caching and deployment-ready external rendering.
AI-written summary · about
chapters (26)
- 0:00Start
- 5:46The fundamental premise
- 7:41Our first component
- 9:23render() and JSX
- 10:29Thinking in React
- 11:36Component hierarchy: props
- 12:45Pro tip: Stateless components
- 13:03Tip: Presentational and Container components
- 15:03React Targets
- 15:52Recommended setup
- 16:06Webpack
- 17:23Insertion
- 20:57Call a node.js subprocess Make a call to node.js using Symfony Process component
- 22:21External node.js server
- 22:48Options 1 & 2
- 24:42Redux: a matter of state
- 27:17Redux with ReactRenderer
- 28:18Dynamic forms, why?
- 29:26Typically PHP frameworks have a Form Component
- 30:55Using forms in an API
- 32:40Forms rendered to HTML
- 35:45Case: Complex Wizard Form
- 38:25Transform piece by piece
- 38:47Transformers
- 39:43Leverage json-schema: Validators
- 40:05Leverage json-schema: Form generators
related talks
01h 19mServer side rendering of React with Symfony
40mIntegrating React.js into a PHP application
42mServer-side Rendering of JavaScript in PHP
59mBring Your PHP Application to the Next Level with React.JS
46mPushing the limits of PHP with React PHP
33mAn Introduction to Asynchronous PHP using ReactPHP
38mMigrating from PHP legacy code to React & Best Practices in React
21mThe Hybrid Experiment: Merging Node.js, WordPress, and React
