PHPackages                             monkeyscloud/monkeyslegion-live - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. monkeyscloud/monkeyslegion-live

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

monkeyscloud/monkeyslegion-live
===============================

Server-driven reactive components — write PHP 8.4, get a reactive UI with MonkeysJS

1.0.0(1mo ago)00MITPHPPHP ^8.4

Since May 27Pushed 1mo agoCompare

[ Source](https://github.com/MonkeysCloud/MonkeysLegion-Live)[ Packagist](https://packagist.org/packages/monkeyscloud/monkeyslegion-live)[ RSS](/packages/monkeyscloud-monkeyslegion-live/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (7)Versions (2)Used By (0)

monkeyslegion-live
==================

[](#monkeyslegion-live)

**Server-driven reactive components for MonkeysLegion. Write PHP, get a reactive UI — no API, no SPA build step.**

`monkeyslegion-live` is the server half. **MonkeysJS** is the client runtime that ships with it. Together they give you Livewire/LiveComponent-class interactivity: components are plain PHP 8.4 classes, the UI updates over the wire, and you never hand-write fetch calls or JSON endpoints.

**The differentiator:** MonkeysJS is a purpose-built runtime, not a wrapper around Alpine.js or Stimulus. It's designed against this exact wire protocol — hydration, morphing, and batching are first-class. No PHP framework ships streamed AI rendering from a server into the DOM token-by-token.

---

Installation
------------

[](#installation)

```
composer require monkeyscloud/monkeyslegion-live
```

Add to your layout:

```
@liveScripts          {{-- injects MonkeysJS + CSRF + config --}}
@liveStyles           {{-- optional: loading/transition styles --}}
```

### Requirements

[](#requirements)

- PHP 8.4+
- `monkeyscloud/monkeyslegion-template` ^2.0
- `monkeyscloud/monkeyslegion-http` ^2.1
- `monkeyscloud/monkeyslegion-router` ^2.1
- `monkeyscloud/monkeyslegion-di` ^2.0
- `monkeyscloud/monkeyslegion-encryption` ^1.0

### Optional

[](#optional)

- `monkeyslegion-validation` — live form validation via `WithValidation`
- `monkeyslegion-permissions` — `#[RequiresPermission]` on actions
- `monkeyslegion-sockets` — real-time push via `Broadcasts`
- `monkeyslegion-apex` — streamed AI rendering via `Streams`
- `monkeyslegion-files` — chunked file uploads via `WithFileUploads`

---

Quick Start
-----------

[](#quick-start)

### 1. Write a component

[](#1-write-a-component)

```
