PHPackages                             walnut/lib\_viewrenderer - 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. [Templating &amp; Views](/categories/templating)
4. /
5. walnut/lib\_viewrenderer

ActiveLibrary[Templating &amp; Views](/categories/templating)

walnut/lib\_viewrenderer
========================

01PHP

Since Sep 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/kapitancho/walnut-lib-viewrenderer)[ Packagist](https://packagist.org/packages/walnut/lib_viewrenderer)[ RSS](/packages/walnut-lib-viewrenderer/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

PHP View Renderer
=================

[](#php-view-renderer)

This is a very basic view renderer that maps any PHP class (view) to a template file.

Examples
--------

[](#examples)

The usage is straightforward

```
//Setup (usually done via DI)
$renderer = new PhpTemplateRenderer(
	new PerFileTemplateNameMapper('templates', 'php')
);

$viewMapper = new LookupViewMapper([
    HomePageView::class => 'home-page',
    AboutPageView::class => 'about-page'
])

$adapter = new ViewRendererAdapter($renderer, $viewMapper);

//Usage
$view = new HomePageView;
$adapter->render($view);
```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

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://avatars.githubusercontent.com/u/792682?v=4)[Marian Kostadinov](/maintainers/kapitancho)[@kapitancho](https://github.com/kapitancho)

---

Top Contributors

[![kapitancho](https://avatars.githubusercontent.com/u/792682?v=4)](https://github.com/kapitancho "kapitancho (2 commits)")

### Embed Badge

![Health badge](/badges/walnut-lib-viewrenderer/health.svg)

```
[![Health](https://phpackages.com/badges/walnut-lib-viewrenderer/health.svg)](https://phpackages.com/packages/walnut-lib-viewrenderer)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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