PHPackages                             niklas/template - 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. niklas/template

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

niklas/template
===============

Simple html template

v1.0.1(8y ago)062MITPHP

Since Aug 11Pushed 8y ago1 watchersCompare

[ Source](https://github.com/NiklasDerEchte/template)[ Packagist](https://packagist.org/packages/niklas/template)[ RSS](/packages/niklas-template/feed)WikiDiscussions master Synced yesterday

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

template
========

[](#template)

Simple html template

Example
-------

[](#example)

```
$template = new Template("testIndex.html");

echo "Content is below the testSide, becouse the maincontent tags (%%)";

$template->set("title", "Hello");
$template->assign(["test"=>"search","test2"=>"And", "test3"=>"Replace"]);
$template->append("newFile", "testSide.html");

echo $template->render();
```

Install
-------

[](#install)

Niklas/Template is available at packagist.org

install it using composer:

```
composer require niklas/template

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3246d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e00c8678180333c16d2efb0f20de362c796cc89b9786a9a9d32e4967c3b160e?d=identicon)[NiklasDerEchte](/maintainers/NiklasDerEchte)

---

Top Contributors

[![NiklasDerEchte](https://avatars.githubusercontent.com/u/30403587?v=4)](https://github.com/NiklasDerEchte "NiklasDerEchte (1 commits)")

### Embed Badge

![Health badge](/badges/niklas-template/health.svg)

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.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.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

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

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

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

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

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