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

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

codemonster-ru/view-php
=======================

PHP template engine for codemonster-ru/view

v2.1.0(7mo ago)01592MITPHPPHP &gt;=8.2CI passing

Since Sep 27Pushed 7mo agoCompare

[ Source](https://github.com/codemonster-ru/view-php)[ Packagist](https://packagist.org/packages/codemonster-ru/view-php)[ Docs](https://github.com/codemonster-ru/view-php)[ RSS](/packages/codemonster-ru-view-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (2)

codemonster-ru/view-php
=======================

[](#codemonster-ruview-php)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5255fd598da6ae173661ef013a2a983dab5273e31313201501637aa57dfe218e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656d6f6e737465722d72752f766965772d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codemonster-ru/view-php)[![Total Downloads](https://camo.githubusercontent.com/bf50a90c32e79b1552a10a4962edb726d037aef46cec98ce9f69bad9829de7d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656d6f6e737465722d72752f766965772d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codemonster-ru/view-php)[![License](https://camo.githubusercontent.com/38be6bfa17728ce900b5dcfa60ed1d1418cee395bc154badab683878b0e62cf6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f64656d6f6e737465722d72752f766965772d7068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codemonster-ru/view-php)[![Tests](https://github.com/codemonster-ru/view-php/actions/workflows/tests.yml/badge.svg)](https://github.com/codemonster-ru/view-php/actions/workflows/tests.yml)

PHP template engine for the [`codemonster-ru/view`](https://github.com/codemonster-ru/view) core.
Uses the **core Locator** for consistent file resolution (dot-notation, namespaces, multiple base paths).

📦 Installation
--------------

[](#-installation)

Via Composer:

```
composer require codemonster-ru/view-php
```

🚀 Usage
-------

[](#-usage)

```
use Codemonster\View\View;
use Codemonster\View\Locator\DefaultLocator;
use Codemonster\View\Engines\PhpEngine;

$locator = new DefaultLocator([__DIR__ . '/resources/views']); // can be an array
$engine = new PhpEngine($locator, 'php'); // or ['phtml','php']
$view = new View(['php' => $engine], 'php');

echo $view->render('emails.welcome', ['user' => 'Vasya']);
```

🧪 Testing
---------

[](#-testing)

You can run tests with the command:

```
composer test
```

👨‍💻 Author
----------

[](#‍-author)

[**Kirill Kolesnikov**](https://github.com/KolesnikovKirill)

📜 License
---------

[](#-license)

[MIT](https://github.com/codemonster-ru/view-php/blob/main/LICENSE)

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance64

Regular maintenance activity

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

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

Every ~8 days

Total

3

Last Release

216d ago

Major Versions

v1.0.0 → v2.0.02025-09-28

### Community

Maintainers

![](https://www.gravatar.com/avatar/a22c460130c82eca5da633a388faa81adf7e63558a2ae1e34441e6624ec2ad15?d=identicon)[KolesnikovKirill](/maintainers/KolesnikovKirill)

---

Top Contributors

[![KolesnikovKirill](https://avatars.githubusercontent.com/u/33142935?v=4)](https://github.com/KolesnikovKirill "KolesnikovKirill (5 commits)")

---

Tags

codemonster-ruenginephprenderertemplatingviewphptemplatingviewrendererenginecodemonster-ru

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8208.4M87](/packages/eftec-bladeone)[eftec/bladeonehtml

The standalone version Blade Template Engine from Laravel in a single php file

1018.1k5](/packages/eftec-bladeonehtml)

PHPackages © 2026

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