PHPackages                             dhii/output-renderer-abstract - 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. dhii/output-renderer-abstract

AbandonedArchivedLibrary

dhii/output-renderer-abstract
=============================

Common abstract functionality for output renderers.

v0.1-alpha2(7y ago)04.2k↑104.5%1MITPHPPHP ^5.4 | ^7.0

Since Jan 10Pushed 7y ago3 watchersCompare

[ Source](https://github.com/Dhii/output-renderer-abstract)[ Packagist](https://packagist.org/packages/dhii/output-renderer-abstract)[ RSS](/packages/dhii-output-renderer-abstract/feed)WikiDiscussions develop Synced today

READMEChangelog (2)Dependencies (9)Versions (4)Used By (1)

Dhii - Output - Renderer - Abstract
===================================

[](#dhii---output---renderer---abstract)

[![Build Status](https://camo.githubusercontent.com/d0a762decbc37b53d186eb9921346614ff45b96054612fe836c40cefb16c9261/68747470733a2f2f7472617669732d63692e6f72672f446869692f6f75747075742d72656e64657265722d61627374726163742e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/Dhii/output-renderer-abstract)[![Code Climate](https://camo.githubusercontent.com/4071a1692566180d70224f296b32913f73dd6ff8a61c1125e5ea52924914a423/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f6f75747075742d72656e64657265722d61627374726163742f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/output-renderer-abstract)[![Test Coverage](https://camo.githubusercontent.com/10d0a12f039302c993b72bb2c9db3cf19731a29ed18c28f7838f61d7ad00aa62/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f6f75747075742d72656e64657265722d61627374726163742f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/output-renderer-abstract/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/0ac1b7927ce33c585af29e1ccfb40c14afeabf0ce7f05131cc8eb8f20b515957/68747470733a2f2f706f7365722e707567782e6f72672f646869692f6f75747075742d72656e64657265722d61627374726163742f76657273696f6e)](https://packagist.org/packages/dhii/output-renderer-abstract)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Common abstract functionality for output renderers.

Details
-------

[](#details)

This package provides abstract functionality for the most common implementations of output renderers. The classes are meant to implement functionality for interfaces in [`dhii/output-renderer-interface`](https://github.com/Dhii/output-renderer-interface), although of course they can be used for other purposes. This is a good place to start if you are creating your own renderer of a new kind. If you are looking for a little more specialized yet common functionality that extends this, see [`dhii/output-renderer-base`](https://github.com/Dhii/output-renderer-base).

### Classes

[](#classes)

- [`StringableRenderCatcherTrait`](src/StringableRenderCatcherTrait.php) - Intended for [`BlockInterface`](https://github.com/Dhii/output-renderer-interface/blob/v0.2/src/BlockInterface.php), which is usually something that contains all data needed to produce output. Takes care of what happens when it is cast to string.
- [`RenderCapableTemplateBlockTrait`](src/RenderCapableTemplateBlockTrait.php) - Renders a template using an internal context and template.
- [`BlockAwareTrait`](src/BlockAwareTrait.php) - Internal functionality for storing and retrieving a block. Does minimal validation. Can be used to back up [`BlockAwareInterface`](https://github.com/Dhii/output-renderer-interface/blob/v0.2/src/BlockAwareInterface.php).
- [`ContextAwareTrait`](src/ContextAwareTrait.php) - Internal functionality for storing and retrieving a context in the form of a [`ContainerInterface`](https://github.com/php-fig/container/blob/1.0.0/src/ContainerInterface.php). Can be used to back up [`ContextAwareInterface`](https://github.com/Dhii/output-renderer-interface/blob/v0.2/src/ContextAwareInterface.php).
- [`RenderTemplateCapableTrait`](src/RenderTemplateCapableTrait.php) - Standardizes the process of rendering a template. Intended to complement [`RenderCapableTemplateBlockTrait`](src/RenderCapableTemplateBlockTrait.php).
- [`RendererAwareTrait`](src/RendererAwareTrait.php) - Internal functionality for storing and retrieving a renderer. Does minimal validation. Can be used to back up [`RendererAwareInterface`](https://github.com/Dhii/output-renderer-interface/blob/v0.2/src/RendererAwareInterface.php).
- [`TemplateAwareTrait`](src/TemplateAwareTrait.php) - Internal functionality for storing and retrieving a template. Does minimal validation. Can be used to back up [`TemplateAwareInterface`](https://github.com/Dhii/output-renderer-interface/blob/v0.2/src/TemplateAwareInterface.php).
- [`CaptureOutputCapableTrait`](src/CaptureOutputCapableTrait.php) - Functionality for capturing the output of a callback.

###  Health Score

27

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81% 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 ~34 days

Total

2

Last Release

2874d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

---

Top Contributors

[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (64 commits)")[![mecha](https://avatars.githubusercontent.com/u/5425482?v=4)](https://github.com/mecha "mecha (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dhii-output-renderer-abstract/health.svg)

```
[![Health](https://phpackages.com/badges/dhii-output-renderer-abstract/health.svg)](https://phpackages.com/packages/dhii-output-renderer-abstract)
```

###  Alternatives

[akrabat/ip-address-middleware

PSR-15 middleware that determines the client IP address and stores it as a ServerRequest attribute

1702.4M15](/packages/akrabat-ip-address-middleware)[internal/dload

Downloads binaries.

98124.8k6](/packages/internal-dload)

PHPackages © 2026

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