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)0365↓50%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 1mo ago

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 22% 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

1372d 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

[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[whitecube/nova-flexible-content

Flexible Content &amp; Repeater Fields for Laravel Nova.

8053.0M25](/packages/whitecube-nova-flexible-content)[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3871.2M](/packages/limenius-react-bundle)[symfony/ux-icons

Renders local and remote SVG icons in your Twig templates.

545.8M69](/packages/symfony-ux-icons)

PHPackages © 2026

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