Download the PHP package camspiers/reactjs-php-render without Composer
On this page you can find all versions of the php package camspiers/reactjs-php-render. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package reactjs-php-render
ReactJS PHP Render
This library aims to provide multiple options for rendering React from PHP.
Experimental
The API is experimental and is likely to change.
Concepts
- Renderer (
ReactJS\Renderer\RendererInterface
)- This interface is implemented by mutiple renderers to provide different potential rendering options (HTTP Server, V8Js etc)
- RuntimeFragmentProvider (
ReactJS\RuntimeFragmentProvider\ProviderInterface
)- This interface is implemented to provider different environment support (CommonJS, Globals etc)
Usage
Renderers can be used directly to generate either "mountable" React HTML (including checksums and ids), or to generate static markup.
The React class (ReactJS\React
) can be used to generate mountable React HTML along with JavaScript that will automatically mount the browser React component into the generated server rendered markup.
Node
When using a node process, users are required to provide source file(s) in an appropriate format for node to execute, these source file(s) need include:
- React
- The component you are attempting to render
V8
When using the V8Js php extension, users are required to provide source file(s) in the appropriate format for V8 to execute, these source file(s) need include:
- React
- The component you are attempting to render
The result:
Installation (with composer)
$ composer require camspiers/reactjs-php-render:dev-master
All versions of reactjs-php-render with dependencies
psr/log Version ~1.0
guzzlehttp/guzzle Version ~4.0
symfony/process Version ~2.5