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

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

frostaly/template
=================

The frostaly template component.

138[1 issues](https://github.com/frostaly/template/issues)PHP

Since Jun 29Pushed 3y ago1 watchersCompare

[ Source](https://github.com/frostaly/template)[ Packagist](https://packagist.org/packages/frostaly/template)[ RSS](/packages/frostaly-template/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Template Component
==================

[](#template-component)

[![](https://avatars.githubusercontent.com/u/95505865)](https://avatars.githubusercontent.com/u/95505865)

The template component provides a simple interface to interact with multiple templating libraries.

[![Source Code](https://camo.githubusercontent.com/b880cf821d22afde578474af861922b76878dad76c0aae41a9a020b08fb745b8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d66726f7374616c792f74656d706c6174652d626c75652e737667)](https://github.com/frostaly/template)[![CI Status](https://github.com/frostaly/template/workflows/Build/badge.svg)](https://github.com/frostaly/template/actions?query=workflow%3A%22Build%22)[![Code Quality](https://camo.githubusercontent.com/9f132695e1a97f6300494398d5b12047a4c0ab52b12f357f14962d8024fd7218/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66726f7374616c792f74656d706c6174652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/frostaly/template/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/ab64f8ed4596c97b29439b983b2daead2fc38ceb491f6551a49b01cdfe6ec207/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f66726f7374616c792f74656d706c6174652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/frostaly/template/?branch=master)[![Software License](https://camo.githubusercontent.com/2fed5eb8f392e7c631cb913309b45c312c917c949db61422fb8b8204295f0d47/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c2d627269676874677265656e2e737667)](https://github.com/frostaly/template/blob/master/LICENSE)

Requirements
------------

[](#requirements)

- This library requires PHP 8.0 or later.

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

[](#installation)

This library is installable via [composer](https://getcomposer.org/):

```
$ composer require frostaly/template

```

Quickstart
----------

[](#quickstart)

Using the default namespace:

```
use Frostaly\Template\Adapters\PlatesRendererAdapter;
use Frostaly\Template\TemplateEngine;
use Frostaly\Template\TemplateRenderer;

$defaultRenderer = new TemplateRenderer(new PlatesRendererAdapter('path/to/views'));
$templateEngine = new TemplateEngine($defaultRenderer);
echo $templateEngine->render('welcome', ['title' => 'frostaly']);
```

Using a custom namespace:

```
use Frostaly\Template\Adapters\TwigRendererAdapter;
use Frostaly\Template\TemplateEngine;
use Frostaly\Template\TemplateRenderer;

$templateEngine = new TemplateEngine();
$twigRenderer = new TemplateRenderer(new TwigRendererAdapter('path/to/views'));
$templateEngine->setRenderer($twigRenderer, 'frostaly');
echo $templateEngine->render('frostaly::home');
```

Current Adapters
----------------

[](#current-adapters)

The component provides adapters for the following libraries.

- [Twig](https://twig.symfony.com/) - from the Symfony framework
- [Latte](https://latte.nette.org/) - from the Nette framework
- [Plates](https://platesphp.com/) - from the PHP League

###  Health Score

11

—

LowBetter than 0% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/33b8756e33d5740413b0b89fdd828eaeb006651643cfd53d2b36468fac6f0773?d=identicon)[Aksiome](/maintainers/Aksiome)

---

Top Contributors

[![aksiome](https://avatars.githubusercontent.com/u/54895777?v=4)](https://github.com/aksiome "aksiome (27 commits)")

### Embed Badge

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

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

###  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)[nicmart/string-template

StringTemplate is a very simple string template engine for php. I've written it to have a thing like sprintf, but with named and nested substutions.

2101.7M30](/packages/nicmart-string-template)

PHPackages © 2026

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