PHPackages                             eru123/reactvuephp - 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. eru123/reactvuephp

ActiveProject

eru123/reactvuephp
==================

I hate myself

00PHP

Since Feb 4Pushed 3mo agoCompare

[ Source](https://github.com/eru123/reactvuephp)[ Packagist](https://packagist.org/packages/eru123/reactvuephp)[ RSS](/packages/eru123-reactvuephp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Project Monolith: Unified Framework Integration Proof of Concept
================================================================

[](#project-monolith-unified-framework-integration-proof-of-concept)

Executive Correspondence
------------------------

[](#executive-correspondence)

**Date:** February 4, 2026
**Subject:** Formal Documentation of the Unified PHP/Frontend Architectual Proof of Concept
**To:** Stakeholders and Development Teams

Dear Colleagues,

I am pleased to present this **Proof of Concept (PoC)**, a technical demonstration of a unified monorepo architecture. This project validates the possibility of maintaining a single-domain, multi-framework ecosystem—venerably referred to as a "Mono Website"—without the administrative burden of reverse proxies or complex HTTP request forwarding.

By leveraging **PHP** as the primary entry point and orchestrator, we have established a system where diverse frontend frameworks (specifically React and Vue.js) coexist harmoniously. This approach ensures that all requests are handled by a single server entity, providing a seamless external experience while maintaining internal modularity.

The following documentation outlines the architectural specifications, implementation details, and current technical constraints of this paradigm.

---

Architectural Overview
----------------------

[](#architectural-overview)

The core philosophy of this project is to use PHP not just for backend logic, but as the master router for the entire application.

### The Entry Point

[](#the-entry-point)

The system uses `index.php` as the central dispatcher. Utilizing a custom routing mechanism, the server identifies the requested URI and serves the corresponding frontend bundle by parsing the Vite manifest.

### Technical Stack

[](#technical-stack)

- **Orchestrator:** PHP 8.x with a custom Router.
- **Frontend Frameworks:** React (TypeScript) &amp; Vue.js (JavaScript).
- **Build System:** Vite &amp; Rolldown, utilized for multi-entrypoint compilation.
- **Server:** PHP Built-in Development Server (automated via Vite plugin).

---

Key Features
------------

[](#key-features)

1. **True Mono-Repo / Mono-Website:** Operates under a single domain without proxying (e.g., Nginx `proxy_pass`).
2. **Simplified Backend Integration:** Native PHP access for API endpoints (`/api`) within the same environment as the UI.
3. **Decentralized Frontend Development:** Individual teams can work in React or Vue within their designated directories while sharing the same build pipeline and deployment target.
4. **Automated Development Environment:** A custom Vite plugin synchronizes the PHP server lifecycle with the Vite build process.

---

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

- PHP 8.1 or higher
- Node.js &amp; pnpm
- Composer

### Installation

[](#installation)

1. Install PHP dependencies: ```
    composer install
    ```
2. Install Node dependencies: ```
    pnpm install
    ```

### Development

[](#development)

To launch the development environment (including the auto-rebuilding frontend and the PHP server):

```
pnpm dev
```

### Production Build

[](#production-build)

To generate the optimized distribution bundles:

```
pnpm build
```

---

Known Limitations and Technical Constraints
-------------------------------------------

[](#known-limitations-and-technical-constraints)

While this architecture provides significant simplicity and deployment advantages, certain trade-offs have been accepted for this Proof of Concept:

### 1. Lack of Hot Module Replacement (HMR)

[](#1-lack-of-hot-module-replacement-hmr)

In this configuration, HMR is disabled. The system relies on `vite build --watch`.

- **Consequence:** Developers must manually refresh the browser after the build completes to see changes.
- **Rationale:** Implementing HMR would necessitate a multi-port setup (one for PHP, one for the Vite dev server), increasing maintenance complexity and deviating from the "Mono Website" principle where PHP is the sole provider of the frontend.

### 2. Framework Navigation (Hard Reloads)

[](#2-framework-navigation-hard-reloads)

When transitioning between different framework entry points (e.g., moving from a React-driven page to a Vue-driven page), the application requires a full page reload.

- **Consequence:** Standard Single Page Application (SPA) routing cannot be used across frameworks. External links or `window.location.href` must be utilized.
- **Rationale:** Each framework resides in its own entry point defined in the Vite manifest. A clean state is required when switching context between the React and Vue runtimes.

---

Conclusion
----------

[](#conclusion)

This project serves as a robust foundation for building complex, multi-framework applications where administrative simplicity and backend integration are paramount. We believe the benefits of a single-domain entry point outweigh the current development-time constraints.

Thank you for your attention to this architectural advancement.

**Sincerely,**

*[Jericho Aquino](https://github.com/eru123)*

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance54

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/05166f465b8d50e88f58c04319272489cffe23c3b85360244973f973e18c1c0f?d=identicon)[eru123](/maintainers/eru123)

---

Top Contributors

[![eru123](https://avatars.githubusercontent.com/u/39824083?v=4)](https://github.com/eru123 "eru123 (3 commits)")

### Embed Badge

![Health badge](/badges/eru123-reactvuephp/health.svg)

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

PHPackages © 2026

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