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 2w ago

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

31

—

LowBetter than 66% of packages

Maintenance14

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

627d 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

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