Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koriym/koriym.reduxreactssr
DEPRECATED
https://github.com/koriym/koriym.reduxreactssr
php react redux ssr v8js
Last synced: 4 months ago
JSON representation
DEPRECATED
- Host: GitHub
- URL: https://github.com/koriym/koriym.reduxreactssr
- Owner: koriym
- License: mit
- Created: 2016-05-28T13:50:45.000Z (over 8 years ago)
- Default Branch: 1.x
- Last Pushed: 2017-03-24T19:45:08.000Z (almost 8 years ago)
- Last Synced: 2024-10-11T08:14:17.900Z (4 months ago)
- Topics: php, react, redux, ssr, v8js
- Language: PHP
- Homepage:
- Size: 571 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PLEASE NOTE, THIS PROJECT IS NO LONGER BEING MAINTAINED
Use [Koriym.Baracoa](https://github.com/koriym/Koriym.Baracoa) instead.
A [Redux-React-SSR example](https://github.com/koriym/Koriym.Baracoa/blob/1.x/docs/example/redux/public/index.php) is available.----
# redux-react-ssr
**redux-react-ssr** is a library that uses the power of Facebook's React Redux library to render UI components on the server-side with PHP as well as on the client.
## Prerequisites
* php7.1
* [V8Js](http://php.net/v8js) (optional for development)## Usage
```php
['message' => 'Hello, Redux!']], 'root');
$html = <<
{$view->markup}
{$view->js}
EOT;
echo $html;
```## No V8Js enviroment
It is posibble to use without V8Js extention for development. In that case, Render method return no markup but enable to render by only client without error.
## Installation
```
composer require koriym/redux-react-ssr
```## Testing redux-react-ssr
```
git clone [email protected]:koriym/Koriym.ReduxReactSsr.git
composer install
cd Koriym.ReduxReactSsr/example/redux
npm install
npm run build
npm start
```## Install V8Js
### OSX
```
brew update
brew install homebrew/php/php71-v8js
```edit `php.ini` or add 'V8Js.ini'
```
extension="/usr/local/opt/php71-v8js/v8js.so"
```