PHPackages                             sabujdas94/html-template-parser - 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. sabujdas94/html-template-parser

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

sabujdas94/html-template-parser
===============================

A secure Twig-based HTML template parser for user-provided templates input.

v1.0.3(1y ago)013MITPHPPHP &gt;=7.4

Since Dec 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sabujdas94/html-template-parser)[ Packagist](https://packagist.org/packages/sabujdas94/html-template-parser)[ RSS](/packages/sabujdas94-html-template-parser/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (5)Used By (0)

Examples
--------

[](#examples)

You can find usage examples in the `examples/` directory.

### Basic Example

[](#basic-example)

```
require 'path-to-your-package/vendor/autoload.php';

use SecureTemplateParser\SecureTemplateParser;

$parser = new SecureTemplateParser();

$template =  [
        'name' => 'John Doe',
        'age' => 25,
    ],
];

echo $parser->render($template, $data);

## License

This package is open-source software licensed under the [MIT License](LICENSE).
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Total

4

Last Release

575d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8719723?v=4)[Sabuj Das](/maintainers/sabujdas94)[@sabujdas94](https://github.com/sabujdas94)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sabujdas94-html-template-parser/health.svg)

```
[![Health](https://phpackages.com/badges/sabujdas94-html-template-parser/health.svg)](https://phpackages.com/packages/sabujdas94-html-template-parser)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)

PHPackages © 2026

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