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

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

phpish/template
===============

Capture output of and compose plain old PHP templates

v1.0.1(5y ago)05211MITPHPPHP &gt;=5.3.0

Since Aug 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/phpish/template)[ Packagist](https://packagist.org/packages/phpish/template)[ Docs](https://github.com/phpish/template)[ RSS](/packages/phpish-template/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (3)Used By (0)

phpish\\template
================

[](#phpishtemplate)

Capture output of and compose plain old PHP templates.

Require and use
---------------

[](#require-and-use)

```

```

Function Reference
------------------

[](#function-reference)

### render

[](#render)

string **render** ( string *$template* \[, array *$template\_vars* \[, string *$template\_dir* \]\] )

### compose

[](#compose)

string **compose** ( string *$template* , array *$template\_vars* \[, $... \] )

### basedir

[](#basedir)

string **basedir** ( \[ string $dir\] )

### default\_basedir

[](#default_basedir)

string **default\_basedir** ( void )

### filename

[](#filename)

string **filename** ( string *$template* \[, string *$template\_dir* \] )

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~2668 days

Total

2

Last Release

2026d ago

### Community

Maintainers

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

---

Top Contributors

[![sandeepshetty](https://avatars.githubusercontent.com/u/20508?v=4)](https://github.com/sandeepshetty "sandeepshetty (11 commits)")[![nashjain](https://avatars.githubusercontent.com/u/38799?v=4)](https://github.com/nashjain "nashjain (1 commits)")

### Embed Badge

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

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.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.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.3k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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