PHPackages                             patlamontagne/react-dot-php - 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. patlamontagne/react-dot-php

ActiveLibrary

patlamontagne/react-dot-php
===========================

The PHP adapter for react-dot.

v0.1.2(3y ago)0301MITPHPPHP ^7.2|~8.0.0|~8.1.0|~8.2.0

Since Nov 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/patlamontagne/react-dot-php)[ Packagist](https://packagist.org/packages/patlamontagne/react-dot-php)[ RSS](/packages/patlamontagne-react-dot-php/feed)WikiDiscussions master Synced 1mo ago

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

PHP adapter for React-dot
=========================

[](#php-adapter-for-react-dot)

Dots are separated backend driven React components.

What does it mean? It means you can add multiple single react components on your front-end and send them initial props right from your backend.

`react-dot` is intended for projects where you can't leverage inertiajs' SPA approach, or for existing server-side rendered projects where you just need to easily add some react interactivity without resorting to rebuilding the whole thing in react.

### Javascript library

[](#javascript-library)

Use the JS library on your front-end to dynamically render dot components.

Installing
----------

[](#installing)

```
composer require patlamontagne/react-dot-php
```

Rendering a dot
---------------

[](#rendering-a-dot)

Each `Dot::render` will generate distinct react root that the JS library will use to initialize your components.

```
use ReactDot\Dot;

// will echo the component directly
Dot::render('Layout/NavigationBar', ['mode' => 'dark']);

// accepts functions
Dot::render('Layout/NavigationBar', [
    'mode' => 'dark',
    // lazy
    'auth' => function() {
        if ($user = user()) {
            return [
                'user' => $user,
            ];
        }
    },
]);

// get the resulting string
echo Dot::build('Layout/NavigationBar', ['mode' => 'dark']);
```

Share props to all dots
-----------------------

[](#share-props-to-all-dots)

Shared props will be sent to all dot components on the page.

```
// share a key/value prop
Dot::share('mode', 'dark');

// also accepts functions...
Dot::share('auth', function() {
    if ($user = user()) {
        return [
            'user' => $user,
        ];
    }
});

// ...and arrays
Dot::share([
    'title' => 'Welcome',
    // lazy
    'auth' => function() {
        if ($user = user()) {
            return [
                'user' => $user,
            ];
        }
    },
]);
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 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

Every ~84 days

Total

3

Last Release

1103d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/39de8d61a3fe1758be5ac6a90971806f5104cd51992e3dcd2d1a32e98612c73c?d=identicon)[patlamontagne](/maintainers/patlamontagne)

---

Top Contributors

[![patlamontagne](https://avatars.githubusercontent.com/u/16765115?v=4)](https://github.com/patlamontagne "patlamontagne (15 commits)")

---

Tags

laravelwordpressreact

### Embed Badge

![Health badge](/badges/patlamontagne-react-dot-php/health.svg)

```
[![Health](https://phpackages.com/badges/patlamontagne-react-dot-php/health.svg)](https://phpackages.com/packages/patlamontagne-react-dot-php)
```

###  Alternatives

[tarunkorat/laravel-asset-cleaner

Safely detect and remove unused CSS, JS, SCSS and other assets from Laravel applications

733.2k1](/packages/tarunkorat-laravel-asset-cleaner)

PHPackages © 2026

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