PHPackages                             tjlytle/render - 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. tjlytle/render

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

tjlytle/render
==============

A very simple view rendered for PHP based templates.

v1.0.0(12y ago)7391MITPHP

Since Feb 22Pushed 12y ago1 watchersCompare

[ Source](https://github.com/tjlytle/Render)[ Packagist](https://packagist.org/packages/tjlytle/render)[ RSS](/packages/tjlytle-render/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/f2ceb28bf19e3e884382e2999629b2155331aa145a76659b70e710f43264a290/68747470733a2f2f7472617669732d63692e6f72672f746a6c79746c652f52656e6465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/tjlytle/Render)

Render
======

[](#render)

A *very* simple rendered for PHP based templates. **Not** a template language, just a simple wrapper that handles undefined template variables, helper functions, and turing a `phtml` file into a string.

If you're using some kind of framework, you probably shouldn't be using this. I threw this together to be pasted (yes, pasted, if you have composer up and running, pull in a real template library) into exsisting legacy projects and turn classic HTML with embedded PHP into a bit more up-to-date PHP rendered templates.

Features
--------

[](#features)

- Set View Variables
- Set View Helpers
- Render Template in Layout

Example
-------

[](#example)

index.php:

```
$render = new Render('layout.phtml');
$render->name = 'Tim';
$render->message = 'This is a secret message';
$render->encode = function($value){
    return str_rot13($value);
};

echo $render('template.phtml');

```

layout.phtml:

```

  Example Layout

    My Old Site

```

template.phtml

```
Hi , welcome back.
Here's your secret message:

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4464d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2918addb7ac3a446a8e6a2f824efbd116ab4e5eeeb15a87ba1680163165f8864?d=identicon)[tjlytle](/maintainers/tjlytle)

---

Top Contributors

[![tjlytle](https://avatars.githubusercontent.com/u/125074?v=4)](https://github.com/tjlytle "tjlytle (6 commits)")

---

Tags

templatetemplatingviewrenderer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tjlytle-render/health.svg)

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

###  Alternatives

[eftec/bladeone

The standalone version Blade Template Engine from Laravel in a single php file

8208.4M87](/packages/eftec-bladeone)[laminas/laminas-view

Fast and type safe HTML templating library with a flexible plugin system supporting multistep template composition

7526.3M230](/packages/laminas-laminas-view)[eftec/bladeonehtml

The standalone version Blade Template Engine from Laravel in a single php file

1018.1k5](/packages/eftec-bladeonehtml)

PHPackages © 2026

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