• Stars
    star
    391
  • Rank 110,003 (Top 3 %)
  • Language
    PHP
  • License
    MIT License
  • Created almost 9 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Client and Server-side React.js rendering in a Symfony Bundle

ReactBundle

ReactBundle integrates ReactRenderer with Symfony. This lets you implement React.js client and server-side rendering in your Symfony projects, allowing the development of universal (isomorphic) applications.

Note: If you are new to React.js, please note that this bundle is not by any means required to use React with Symfony. This allows you to do some advanced features such as Server Side Rendering, or injecting components directly from Twig tags.

Features include:

  • Prerender server-side React components for SEO, faster page loading, and users that have disabled JavaScript.
  • Twig integration.
  • Client-side render will take the server-side rendered DOM, recognize it, and take control over it without rendering again the component until needed.
  • Error and debug management for server and client side code.
  • Simple integration with Webpack.

Latest Stable Version Latest Unstable Version License

Example

For a complete example, with a sensible Webpack set up and a sample application to start with, check out Symfony React Sandbox.

Documentation

The documentation for this bundle is available in the Resources/doc directory of the bundle:

Installation

All the installation instructions are located in the documentation.

License

This bundle is under the MIT license. See the complete license in the bundle:

LICENSE.md

Credits

ReactBundle is heavily inspired by the great React On Rails, and uses its npm package to render React components.

The installation instructions have been adapted from https://github.com/KnpLabs/KnpMenuBundle. Because they were great.

With Silex

Silex was discontinued in June 2018. However, if you wish to use ReactRenderer with Silex, check out @teameh Silex React Renderer Service Provider.

More Repositories

1

symfony-react-sandbox

Example of integration with React and Webpack (Webpack Encore) for universal (isomorphic) React rendering, using Limenius/ReactBundle and Limenius/LiformBundle
JavaScript
337
star
2

ReactRenderer

Client and Server-side React rendering from PHP
PHP
239
star
3

liform-react

Generate forms from JSON Schema to use with React (& redux-form)
JavaScript
174
star
4

LiformBundle

Symfony Bundle to render Symfony Forms to JSON Schema
PHP
135
star
5

Liform

PHP library to render Symfony Forms to JSON Schema
PHP
134
star
6

tictactoe

Example of integration between a React+Redux client side with an Elixir/OTP GenServer
JavaScript
8
star
7

LimeniusAramblaGeneratorBundle

Symfony2 bundle to generate Doctrine2 entities from a RAML spec
PHP
4
star
8

symfony-travolta-tutorial

A practical tutorial of Symfony 4
PHP
3
star
9

workshop-symfony-react

Workshop about Server Side Rendering of React in PHP (Symfony)
PHP
3
star
10

limenius-percentage-slider

[Unmantained] JavaScript slider for percentages. Or segments that add up to a certain value.
JavaScript
3
star
11

LimeniusFilesystemRouterBundle

Symfony router for static html files
PHP
2
star
12

arambla

[WIP] RAML parser written in PHP with a focus on extracting schema information
PHP
2
star
13

liform-sandbox

Sandbox for Liform, Smfony Form serializer into json-schema
PHP
2
star
14

workshop-react-native-2017

Materials for a workshop about React Native
JavaScript
2
star
15

leyelectoral

Graphical visualization of the Spanish Election System. Made in Silex & Backbone
JavaScript
2
star
16

workshop-sagas

sagas workshop React Alicante 2019
JavaScript
2
star
17

beforeNickArrives

Our entry for Ludum Dare 37
JavaScript
1
star
18

LimeniusStackBoilerplateBundle

Stack Layout + HTML5 Boilerplate for Symfony2 users
JavaScript
1
star