PHPackages                             dhii/placeholder-template-abstract - 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. dhii/placeholder-template-abstract

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

dhii/placeholder-template-abstract
==================================

Abstract functionality for working with templates that use placeholders.

v0.1-alpha5(7y ago)01.4k1MITPHPPHP ^5.4 | ^7.0

Since May 31Pushed 7y ago2 watchersCompare

[ Source](https://github.com/Dhii/placeholder-template-abstract)[ Packagist](https://packagist.org/packages/dhii/placeholder-template-abstract)[ RSS](/packages/dhii-placeholder-template-abstract/feed)WikiDiscussions develop Synced 2mo ago

READMEChangelog (5)Dependencies (6)Versions (7)Used By (1)

Dhii - Placeholder Template - Abstract
======================================

[](#dhii---placeholder-template---abstract)

[![Build Status](https://camo.githubusercontent.com/26fa4f1dca31e2ea49ae7580d2dd5cbefe6528e33569c0e476688afaf092919b/68747470733a2f2f7472617669732d63692e6f72672f446869692f706c616365686f6c6465722d74656d706c6174652d61627374726163742e7376673f6272616e63683d646576656c6f70)](https://travis-ci.org/Dhii/placeholder-template-abstract)[![Code Climate](https://camo.githubusercontent.com/cacf24052e178fd5051c401d7557aec612f10802c0b38013a630d133f1383797/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f706c616365686f6c6465722d74656d706c6174652d61627374726163742f6261646765732f6770612e737667)](https://codeclimate.com/github/Dhii/placeholder-template-abstract)[![Test Coverage](https://camo.githubusercontent.com/ed8fcd87eb5ca50c0783908c7942b002a9f7783b3bc4fe084b975b0fa3924fe6/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f446869692f706c616365686f6c6465722d74656d706c6174652d61627374726163742f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Dhii/placeholder-template-abstract/coverage)[![Latest Stable Version](https://camo.githubusercontent.com/6bd516b0982123435386253e13ec65da9f66be23a83e5ab8375f1887262f94bd/68747470733a2f2f706f7365722e707567782e6f72672f646869692f706c616365686f6c6465722d74656d706c6174652d61627374726163742f76657273696f6e)](https://packagist.org/packages/dhii/placeholder-template-abstract)[![Latest Unstable Version](https://camo.githubusercontent.com/049896f2da44792eac51f681fd4f5c05b7c18f2610e0b8d46e64d39e0ebe32e2/68747470733a2f2f706f7365722e707567782e6f72672f646869692f706c616365686f6c6465722d74656d706c6174652d61627374726163742f762f756e737461626c65)](https://packagist.org/packages/dhii/placeholder-template-abstract)[![This package complies with Dhii standards](https://camo.githubusercontent.com/44bbe8c7678c1784cfc53cabce5d3e32fc22a840453c5ed9c08601522fe7c213/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f446869692d436f6d706c69616e742d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Dhii/dhii)

Details
-------

[](#details)

Abstract functionality for working with templates that use placeholders.

### Traits

[](#traits)

- [`ReplaceTokensCapableTrait`](src/ReplaceTokensCapableTrait.php) - Replaces tokens in a string with their corresponding values from a container, according to the token start and end. Allows normalization of token key into format used in container.
- [`NormalizeTokenDelimiterCapableTrait`](src/NormalizeTokenDelimiterCapableTrait.php) - Normalizes token delimiters, like token start and end, making sure value type is correct.
- [`TokenStartAwareTrait`](src/TokenStartAwareTrait.php) - Awareness of a token start delimiter.
- [`TokenEndAwareTrait`](src/TokenEndAwareTrait.php) - Awareness of a token end delimiter.
- [`DefaultPlaceholderValueAwareTrait`](src/DefaultPlaceholderValueAwareTrait.php) - Awareness of a default placeholder value.
- [`PlaceholderTemplateAwareCapableTrait`](src/PlaceholderTemplateAwareCapableTrait.php) - Awareness of a placeholder template source.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity48

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

Total

5

Last Release

2899d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1894e91b32c9f80d8f30a42d360af6983a507f1cf2c621b7c9a0a0de14e011c5?d=identicon)[XedinUnknown](/maintainers/XedinUnknown)

---

Top Contributors

[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (37 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dhii-placeholder-template-abstract/health.svg)

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

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