PHPackages                             frdl/php-templater - 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. frdl/php-templater

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

frdl/php-templater
==================

Template Replacers (`Angular-style`)

v0.0.4(6y ago)1271MITPHPPHP &gt;=7.2.0

Since Aug 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/frdl/php-templater)[ Packagist](https://packagist.org/packages/frdl/php-templater)[ RSS](/packages/frdl-php-templater/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

php-templater
=============

[](#php-templater)

This package can process and render templates similar to AngularJS.

Templates {{my.var}} for \['my'=&gt;\['var'=&gt;'Hello, World'\]\]

Examples
========

[](#examples)

frdl\\Templater\\SimpleDotNotationReplacer
------------------------------------------

[](#frdltemplatersimpledotnotationreplacer)

Based on regular expression.

```
$arr = [
    'test' => [
        'message' => 'Hello, World',
    ],

];

echo \frdl\Templater\SimpleDotNotationReplacer::replace(\frdl\Context::create($arr),
    'Message: {{test.message}}');
    //Message: Hello, World
```

frdl\\Templater\\AdvancedReplacer
---------------------------------

[](#frdltemplateradvancedreplacer)

Based on  .

```
$arr = [
    'show' => false,
    'test' => [
        'message' => 'Hello, World',
    ],
    'items' => [
        [ 'property' => 'value1' ],
        [ 'property' => 'value2' ],
    ],
];

echo \frdl\Templater\AdvancedReplacer::replace(\frdl\Context::create($arr),
  '

     Message: {{test.message}}
     this should be hidden
     this should be visible
     {{item.property|ucfirst}}

    ');

/*
//Renders to:

     Template Test Title
     Message: Hello, World

     this should be visible
     Value1Value2

*/
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

Every ~59 days

Total

4

Last Release

2292d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/831c50002c08bb751b698844c98cd6b36897678268b47f1f872a30f4e192ac22?d=identicon)[webfan](/maintainers/webfan)

---

Top Contributors

[![wehowski](https://avatars.githubusercontent.com/u/2658030?v=4)](https://github.com/wehowski "wehowski (29 commits)")

---

Tags

php-templater

### Embed Badge

![Health badge](/badges/frdl-php-templater/health.svg)

```
[![Health](https://phpackages.com/badges/frdl-php-templater/health.svg)](https://phpackages.com/packages/frdl-php-templater)
```

###  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)
