PHPackages                             mawebdk/templateparser - 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. mawebdk/templateparser

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

mawebdk/templateparser
======================

TemplateParser is a simple template parser using PHP template files.

1.0.0(1y ago)05BSD-2-ClausePHPPHP ^8.3.6

Since Feb 23Pushed 1y ago1 watchersCompare

[ Source](https://github.com/mawebdk/templateparser)[ Packagist](https://packagist.org/packages/mawebdk/templateparser)[ RSS](/packages/mawebdk-templateparser/feed)WikiDiscussions main Synced 1mo ago

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

templateparser
==============

[](#templateparser)

Simple template parser using PHP template files.

Using this template parser require no knowledge of a template parser syntax since the template file is "just" an ordinary PHP-file with template variables available as normal PHP variables.

Usage
-----

[](#usage)

Create a template filename.

SampleTemplate.php

```
Hello

```

And then use TemplateParser to parse the above template.

```
try {
    $templateParser = new TemplateParser('SampleTemplate.php');

    $templateParser->setVar(name: 'firstname', value: 'John');
    $templateParser->setVar(name: 'lastname', value: 'Doe');

    echo $templateParser->parse();
} catch (TemplateParserException $e) {
    // Error handling.
}

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance41

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

494d ago

### Community

Maintainers

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

---

Top Contributors

[![mawebdk](https://avatars.githubusercontent.com/u/176606063?v=4)](https://github.com/mawebdk "mawebdk (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mawebdk-templateparser/health.svg)

```
[![Health](https://phpackages.com/badges/mawebdk-templateparser/health.svg)](https://phpackages.com/packages/mawebdk-templateparser)
```

###  Alternatives

[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)[jelix/wikirenderer

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

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

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

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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