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

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

merophp/php-template-view
=========================

PHP template view plugin for merophp/view-engine

0.1-beta(3y ago)0419↓60%1MITPHPPHP &gt;=7.4

Since Dec 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Merophp/php-template-view)[ Packagist](https://packagist.org/packages/merophp/php-template-view)[ RSS](/packages/merophp-php-template-view/feed)WikiDiscussions dev Synced today

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

DRAFT
=====

[](#draft)

Introduction
============

[](#introduction)

PHP template view plugin for merophp/view-engine.

(!) Be aware of security problems if you don't escape your variables in templates.

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

[](#installation)

Via composer:

`composer require merophp/php-template-view`Basic Usage
-----------

[](#basic-usage)

```
require_once 'vendor/autoload.php';

use Merophp\PhpTemplateViewPlugin\PhpTemplateView;

use Merophp\ViewEngine\ViewEngine;
use Merophp\ViewEngine\ViewPlugin\Collection\ViewPluginCollection;
use Merophp\ViewEngine\ViewPlugin\Provider\ViewPluginProvider;
use Merophp\ViewEngine\ViewPlugin\ViewPlugin;
use Merophp\ViewEngine\TemplateArgument\Argument;
use Merophp\ViewEngine\TemplateArgument\SharedArgument;

$collection = new ViewPluginCollection();
$collection->add(
    new ViewPlugin(PhpTemplateView::class),
]);

$provider = new ViewPluginProvider($collection);

$viewEngine = new ViewEngine($provider);

$view = $viewEngine->initializeView();
$view->assignTemplateArguments(
    new Argument('name', 'Tom'),
    new SharedArgument('name', 'Tom') //This argument is available in the template and all of its partials
);
$view->template('viewPackage.hello');
echo $viewEngine->renderView($view);

```

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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 ~236 days

Total

2

Last Release

1418d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f873869f98cb1bdf9edb5847f987dfd216e5bc44f934d87875dca5ee20fbefb?d=identicon)[Robert.Becker](/maintainers/Robert.Becker)

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[symfony/web-link

Manages links between resources

1.4k106.9M359](/packages/symfony-web-link)[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)[justbetter/laravel-http3earlyhints

A HTTP3 Early Hints Middleware for Laravel

1977.0k4](/packages/justbetter-laravel-http3earlyhints)[jelix/wikirenderer

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

1712.3k1](/packages/jelix-wikirenderer)

PHPackages © 2026

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