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

ActiveLibrary

denis909/php-view
=================

1.0(6y ago)111MITPHP

Since Aug 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/denis909/php-view)[ Packagist](https://packagist.org/packages/denis909/php-view)[ RSS](/packages/denis909-php-view/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

View
====

[](#view)

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

[](#installation)

`composer require denis909/view`

Usage
-----

[](#usage)

```
use denis909\view\View;

$view = new View(__DIR__ . '/templates'); // create renderer instance

$content = $view->render('test', ['param1' => 'value 1']); // render template to string

echo $content;

```

#### Template

[](#template)

`/templates/test.php`

```
top

bottom

```

Advanced Usage
--------------

[](#advanced-usage)

You can render files outside templates directory:

```
$content = $view->renderFile(__DIR__ . '/templates2/test.php', ['param1' => 'value 1']);

echo $content;

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2464d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/71797602f835bc8614be7dc4df05a3e3a381e00924aa4a757503f443aff4456d?d=identicon)[denis909](/maintainers/denis909)

---

Top Contributors

[![denis909](https://avatars.githubusercontent.com/u/16691851?v=4)](https://github.com/denis909 "denis909 (14 commits)")

### Embed Badge

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

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

PHPackages © 2026

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