PHPackages                             underpin/post-template-loader - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. underpin/post-template-loader

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

underpin/post-template-loader
=============================

Post Template Loader for Underpin

1.1.0(4y ago)1119GPL-2.0-or-laterPHP

Since Aug 20Pushed 4y ago1 watchersCompare

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

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

Underpin post template Loader
=============================

[](#underpin-post-template-loader)

Loader That assists with adding post templates to a WordPress website.

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

[](#installation)

### Using Composer

[](#using-composer)

`composer require underpin/post-template-loader`

### Manually

[](#manually)

This plugin uses a built-in autoloader, so as long as it is required *before*Underpin, it should work as-expected.

`require_once(__DIR__ . '/underpin-post-templates/post-templates.php');`

Setup
-----

[](#setup)

1. Install Underpin. See [Underpin Docs](https://www.github.com/underpin-wp/underpin)
2. Register new post templates as-needed.

Example
-------

[](#example)

A very basic example could look something like this.

```
\Underpin\underpin()->post_templates()->add( 'template', [
  'name'     => 'Template Name', // Shows in dropdown
  'template' => 'template-name' // Shows when post template is fetched, and in REST
] );
```

Alternatively, you can extend `post template` and reference the extended class directly, like so:

```
underpin()->post_templates()->add('key','Namespace\To\Class');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

1635d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9e6206223bd6f2a57b8ac80605b1b5c3521faaec18ad3f20f25fb728a9a13784?d=identicon)[tstandiford](/maintainers/tstandiford)

---

Top Contributors

[![alexstandiford](https://avatars.githubusercontent.com/u/8210827?v=4)](https://github.com/alexstandiford "alexstandiford (9 commits)")

### Embed Badge

![Health badge](/badges/underpin-post-template-loader/health.svg)

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

###  Alternatives

[naoray/eloquent-model-analyzer

Helpful methods to gain more information about eloquent model classes.

16431.1k1](/packages/naoray-eloquent-model-analyzer)

PHPackages © 2026

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