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

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

alpipego/awp-template
=====================

wp.template and locate\_template loader

0.11.3(1y ago)11.8k1[1 issues](https://github.com/alpipego/awp-template/issues)1MITPHPPHP ^7.1|^8.0

Since Aug 27Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (34)Used By (1)

Template
========

[](#template)

WordPress template loader for reusable templates for `wp.template` and `locate_template`

Usage
-----

[](#usage)

Obtain instance of `Template`, either by instantiating it directly or using `TemplateFactory`'s `build` method.

```
/**
 * Template constructor.
 *
 * @param array $template Uses `locate_template` to prioritize templates @see locate_template()
 * @param string $name Id passed to `wp.template`
 * @param array $data optional array of unchanging data
 */
 public function __construct(array $template, string $name, array $data = [])

```

Pass an array (may be empty) to the `render` method on the `Template` to render php template. Don't pass anything to render a `wp.template`.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

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

Every ~84 days

Recently: every ~251 days

Total

32

Last Release

579d ago

PHP version history (3 changes)0.1.0PHP ^7.0

0.5.0PHP ^7.1

0.10.4PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/decfb01c8bacac76412d15100d44344183d0b377771e9f795bdf0cd0808d2e33?d=identicon)[alpipego](/maintainers/alpipego)

---

Top Contributors

[![alpipego](https://avatars.githubusercontent.com/u/2003667?v=4)](https://github.com/alpipego "alpipego (26 commits)")

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/alpipego-awp-template/health.svg)](https://phpackages.com/packages/alpipego-awp-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)
