PHPackages                             dtkahl/php-simple-view - 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. dtkahl/php-simple-view

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

dtkahl/php-simple-view
======================

1.5.0(9y ago)11.1kMITPHPPHP &gt;=5.6.0

Since Feb 11Pushed 8y agoCompare

[ Source](https://github.com/dtkahl/php-simple-view)[ Packagist](https://packagist.org/packages/dtkahl/php-simple-view)[ RSS](/packages/dtkahl-php-simple-view/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (12)Used By (0)

Abandoned!
==========

[](#abandoned)

[![Latest Stable Version](https://camo.githubusercontent.com/a5e5f9e5e2a6d440456d72abd5ca00a8ec36eb7fb17f92146c6d8312da0f1d8f/68747470733a2f2f706f7365722e707567782e6f72672f64746b61686c2f7068702d73696d706c652d766965772f762f737461626c65)](https://packagist.org/packages/php-simple-view)[![License](https://camo.githubusercontent.com/38f9c588be4d2ee2531879f7095adb64b956072d3cd86edcbb10efbbd83412ed/68747470733a2f2f706f7365722e707567782e6f72672f64746b61686c2f7068702d73696d706c652d766965772f6c6963656e7365)](https://packagist.org/packages/dtkahl/php-simple-view)[![Build Status](https://camo.githubusercontent.com/76ccbb84341a96f7859143327a038b45ca761bb2434920858ff5dfad4921b3e2/68747470733a2f2f7472617669732d63692e6f72672f64746b61686c2f7068702d73696d706c652d766965772e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/dtkahl/php-simple-view)

PHP simple view
===============

[](#php-simple-view)

Simple PHP view renderer.

Dependencies
------------

[](#dependencies)

- `PHP >= 5.6.0`

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

[](#installation)

Install with [Composer](http://getcomposer.org):

```
composer require dtkahl/php-simple-view

```

Usage
-----

[](#usage)

anywhere in PHP

```
$renderer = new \Dtkahl\SimpleView\ViewRenderer(__DIR__.'/views/');
echo $render->render('example.php', ['name' => 'test']);

```

/views/example.php

```

```

Methods
-------

[](#methods)

#### `addViewPaths($paths)`

[](#addviewpathspaths)

add Path(s) where render should search for view files. Returns renderer instance.

\####`render(string $file, array $data = [])`render given view file with given data (as local vars).

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~20 days

Recently: every ~40 days

Total

11

Last Release

3586d ago

PHP version history (2 changes)1.1.2PHP &gt;=7.0.0

1.2.0PHP &gt;=5.6.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/67396034?v=4)[dtkahl](/maintainers/dtkahl)[@dtkahl](https://github.com/dtkahl)

---

Top Contributors

[![dantodev](https://avatars.githubusercontent.com/u/13280775?v=4)](https://github.com/dantodev "dantodev (35 commits)")

---

Tags

phpviewview-renderer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dtkahl-php-simple-view/health.svg)

```
[![Health](https://phpackages.com/badges/dtkahl-php-simple-view/health.svg)](https://phpackages.com/packages/dtkahl-php-simple-view)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.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.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

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

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

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

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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