https://github.com/pmvc-plugin/view_react
view template use facebook react.js
https://github.com/pmvc-plugin/view_react
pmvc-view view
Last synced: about 2 months ago
JSON representation
view template use facebook react.js
- Host: GitHub
- URL: https://github.com/pmvc-plugin/view_react
- Owner: pmvc-plugin
- Created: 2015-07-03T12:00:22.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2022-09-17T02:29:00.000Z (over 3 years ago)
- Last Synced: 2025-03-21T21:44:36.680Z (about 1 year ago)
- Topics: pmvc-view, view
- Language: PHP
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/pmvc-plugin/view_react)
[](https://packagist.org/packages/pmvc-plugin/view_react)
[](https://circleci.com/gh/pmvc-plugin/view_react/tree/master)
[](https://packagist.org/packages/pmvc-plugin/view_react)
[](https://packagist.org/packages/pmvc-plugin/view_react)
# [PMVC] PHP view template with react.js
## Install with Composer
CLICK TO SEE
### 1. Download composer
- mkdir test_folder
- curl -sS https://getcomposer.org/installer | php
### 2. Install Use composer.json or use command-line directly
#### 2.1 Install Use composer.json
- vim composer.json
```
{
"require": {
"pmvc-plugin/view_react": "dev-master"
}
}
```
- php composer.phar install
#### 2.2 Or use composer command-line
- php composer.phar require pmvc-plugin/view_react
or
- composer require pmvc-plugin/view_react
## For debug
```
echo '{"themePath":"home"}' | node ./server.js
```
## Facebook crawler issue
- https://github.com/pmvc-plugin/view_react/issues/1
- Can't set header for none encoding, original proposal was for disable proxy cache to improve first bytes.
```diff
- 'Content-Encoding: none'
+ 'Content-Encoding: identity'
```