PHPackages                             arryanggaputra/viewreact - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. arryanggaputra/viewreact

ActiveLibrary

arryanggaputra/viewreact
========================

Render a ReactJS component based on react-php-v8js

1.0.0(8y ago)34MITPHP

Since Oct 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/arryanggaputra/ViewReact)[ Packagist](https://packagist.org/packages/arryanggaputra/viewreact)[ RSS](/packages/arryanggaputra-viewreact/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

ViewReact
=========

[](#viewreact)

ViewReact is an php library that uses the power of Facebook's React library &amp; React-PHP-V8Js to render UI components on the server-side with PHP as well as on the client.

Credits
-------

[](#credits)

- [React-PHP-V8Js](github.com/reactjs/react-php-v8js)

Prerequisites
-------------

[](#prerequisites)

- Server running PHP 5.3.3+
- [V8Js PHP extension](http://php.net/v8js)

For a walkthrough how to setup V8Js PHP extension, use the links below:

- [On Linux](https://github.com/preillyme/v8js/blob/master/README.Linux.md)
- [On MacOS](https://github.com/preillyme/v8js/blob/master/README.MacOS.md)
- [On Windows](https://github.com/preillyme/v8js/blob/master/README.Win32.md)

Usage
-----

[](#usage)

1. Prepare or create ReactJs Bundle Script

```
import React from 'react'
import ReactDOM from 'react-dom';
import ReactDOMServer from 'react-dom/server';
import HelloWorldComponent from "./HelloWorldComponent";

window.React = React;
window.ReactDOM = ReactDOM;
window.ReactDOMServer = ReactDOMServer;
window.HelloWorldComponent = HelloWorldComponent;
```

2. Put ReactJs bundle script to `ViewReactSource`

```
use Arryanggaputra\ViewReact;
use Arryanggaputra\ViewReactSource;

$reactSource = new ViewReactSource('/path/your/react/or/bundle/*.js');
$view        = new ViewReact($reactSource);
echo $view->render('HelloWorldComponent', [
    'name'        => 'Jon',
]);
```

### Result

[](#result)

```
Hello World John
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3135d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/abe21e80b521e7f5c356a0ac8dc477b3a924692f2bfe63c88f797435ec4c47ad?d=identicon)[arryanggaputra](/maintainers/arryanggaputra)

---

Top Contributors

[![arryanggaputra](https://avatars.githubusercontent.com/u/4743772?v=4)](https://github.com/arryanggaputra "arryanggaputra (5 commits)")

---

Tags

phpreactreact-phpreactjsserver-side-rendering

### Embed Badge

![Health badge](/badges/arryanggaputra-viewreact/health.svg)

```
[![Health](https://phpackages.com/badges/arryanggaputra-viewreact/health.svg)](https://phpackages.com/packages/arryanggaputra-viewreact)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
