News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Stoyan Stefanov:
Server-side React with PHP
September 16, 2013 @ 09:28:24

On phpied.com Stoyan Stefanov has a new post showing how to do server-side React in PHP. React is a user interface library developed by Facebook and Instagram to make building UIs simpler.

So you know about React and how to build your own components. And you know you can run JavaScript inside PHP scripts, thanks to v8js. So nothing can stop you from rendering React components on the server side in PHP. Which means you send the first view from the server and then continue from there.

He walks you through the process step-by-step, showing how to set up the environment for the components and make a test file you'll use to build the components. He includes the Javascript code to make a simple table based on given data. Using the V8J libraries, he makes an object, pushes the Javascript string into it and render it to a string by executing the code. A screenshot is included showing what the output should look like.

0 comments voice your opinion now!
react ui javascript tutorial interface inside

Link: http://www.phpied.com/server-side-react-with-php

blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Data-centric Adobe Flash Builder development with the Zend Framework

Benjamin Eberlei's Blog: Trying a Two Step PEAR/PHAR approach to develop and deploy

Felix Geisendörfer's Blog: Learning from the CakePHP Source Code (Part 1)

PHPFreaks.com: Protecting php applications with PHPIDS

Stoyan Stefanov's Blog: phpBB front-end optimization - 1 hour workshop


Community Events





Don't see your event here?
Let us know!


developer list testing podcast refactor configure series opinion install community introduction threedevsandamaybe language code interview laravel release framework experience unittest

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework