PHPackages                             level51/silverstripe-payload-injector - 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. level51/silverstripe-payload-injector

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

level51/silverstripe-payload-injector
=====================================

Utility for injecting JSON payload into the DOM at render time.

0.1.5(2y ago)01.3kMITPHPCI failing

Since Oct 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Level51/silverstripe-payload-injector)[ Packagist](https://packagist.org/packages/level51/silverstripe-payload-injector)[ Docs](https://github.com/level51/silverstripe-payload-injector)[ RSS](/packages/level51-silverstripe-payload-injector/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (9)Used By (0)

Silverstripe Payload Injector
=============================

[](#silverstripe-payload-injector)

[![License](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](LICENSE.md)[![Version](https://camo.githubusercontent.com/84abc1a8cfcf7aeffd5ef9b658d1ec2590151d9422d4bacd3bcfd06c20cec894/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6576656c35312f73696c7665727374726970652d7061796c6f61642d696e6a6563746f722e7376673f7374796c653d666c6174)](https://packagist.org/packages/level51/silverstripe-payload-injector)

Utility for injecting JSON payload into the DOM at render time.

Requirements
------------

[](#requirements)

- Silverstripe 4.x

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

[](#installation)

- `composer require level51/silverstripe-payload-injector`
- Flush config (`flush=all`) to register the middleware

Usage
-----

[](#usage)

If you do...

```
public function index() {
  PayloadInjector::singleton()->stage([
    'title'       => 'Silverstripe Payload Injector',
    'description' => 'Utility for injecting JSON payload into the DOM at render time.'
  ]);

  return $this->renderWidth('MainView');
}
```

...in a controller you will have...

```
    ...
    window.payload = {"title":"Silverstripe Payload Injector","description":"Utility for injecting JSON payload into the DOM at render time."}

```

...in your template.

Config
------

[](#config)

```
Level51\PayloadInjector\PayloadInjector:
  merge_recursive: true     # Merge payload recursively to avoid overriding existing data (default: true)
```

Maintainer
----------

[](#maintainer)

- Julian Scheuchenzuber

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.2% 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 ~275 days

Recently: every ~343 days

Total

6

Last Release

1018d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/441f0e8f95c17048417a33f37e35d5ffdd4c07902cbedaf7f5786f4b7c454284?d=identicon)[JZubero](/maintainers/JZubero)

---

Top Contributors

[![dkliemsch](https://avatars.githubusercontent.com/u/13777159?v=4)](https://github.com/dkliemsch "dkliemsch (13 commits)")[![JZubero](https://avatars.githubusercontent.com/u/13751426?v=4)](https://github.com/JZubero "JZubero (5 commits)")

---

Tags

silverstripesilverstripe-4silverstripe-moduleinjectionsilverstripesilverstripe-middlewaredom-injectionpayload-injection

### Embed Badge

![Health badge](/badges/level51-silverstripe-payload-injector/health.svg)

```
[![Health](https://phpackages.com/badges/level51-silverstripe-payload-injector/health.svg)](https://phpackages.com/packages/level51-silverstripe-payload-injector)
```

###  Alternatives

[silverstripe/multi-domain

Allows multiple domains to access one CMS instance, mapping them to different sections of the hierarchy

141.6k](/packages/silverstripe-multi-domain)

PHPackages © 2026

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