PHPackages                             dlundgren/phrender - 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. dlundgren/phrender

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

dlundgren/phrender
==================

Simple PHP Renderer

0.2.0(7mo ago)0151MITPHPPHP &gt;=8.1CI passing

Since Feb 28Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/dlundgren/phrender)[ Packagist](https://packagist.org/packages/dlundgren/phrender)[ RSS](/packages/dlundgren-phrender/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

Phrender
========

[](#phrender)

[![Travis CI](https://camo.githubusercontent.com/8b87a6e4dd1140135162a54ca074b99e9217c274076f7acbb503317db3b1e07d/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f646c756e646772656e2f706872656e6465722e706e67)](https://travis-ci.org/dlundgren/phrender) [![Code Climate](https://camo.githubusercontent.com/167c9f3630a5d6b880bdaa064a232667ba0e5856b3b17d40659b0a17aa18c23d/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f646c756e646772656e2f706872656e6465722f6261646765732f6770612e737667)](https://codeclimate.com/github/dlundgren/phrender)

Phrender is a simplistic PHP renderer that provides a no frills rendering engine.

PSR-1 and PSR-4 compliant.

This uses the [Output Interop](https://github.com/output-interop/output-interop) specification.

Contexts
--------

[](#contexts)

The following contexts are provided for use:

- **Collection** Any number of the following
- **Any** Matches any template
- **Contains** uses `stripos` to match the template
- **Matches** Uses a regex to match the template
- **Only** Will match only the specified template

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

[](#installation)

Phrender can be installed using composer

`composer require dlundgren/phrender`

Basic Usage
-----------

[](#basic-usage)

```
