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

ActivePhile-plugin[Utility &amp; Helpers](/categories/utility)

phile/render
============

Render the content of a page by passing it's URL.

138PHP

Since Jun 19Pushed 11y ago2 watchersCompare

[ Source](https://github.com/PhileCMS/phileRender)[ Packagist](https://packagist.org/packages/phile/render)[ RSS](/packages/phile-render/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)DependenciesVersions (1)Used By (0)

phileRender
===========

[](#philerender)

Render the content of a page by passing it's URL.

**This plugin requires that you use Twig for your template engine**

### 1.1 Installation (composer)

[](#11-installation-composer)

```
php composer.phar require phile/render:*

```

### 1.2 Installation (Download)

[](#12-installation-download)

- Install [Phile](https://github.com/PhileCMS/Phile)
- Clone this repo into `plugins/phile/render`

### 2. Activation

[](#2-activation)

After you have installed the plugin. You need to add the following line to your `config.php` file:

```
$config['plugins']['phile\\render'] = array('active' => true);

```

### Usage

[](#usage)

There will now be a new twig function called `render`. It takes a URL to a page, and renders the HTML for it!

#### Basic Examples:

[](#basic-examples)

The path is the same as the way we load pages via URLs.

Let's say we have a page at `content/special.md`, then we will use:

```
{{ render('special') }}
```

This will render the HTML of the `special` page.

Let's say we have a page at `content/sub/special-nested.md`, then we will use:

```
{{ render('sub/special-nested') }}
```

This will render the HTML of the `sub/special-nested` page.

#### Conditional Examples

[](#conditional-examples)

In the config file you can set conditionals so you don't load a page that may not be setup for loading in this way.

```
return array(
  'conditional_checks' => array(
    'template' => 'partial',
    'role' => 'custom'
  )
);
```

This conditional means: only load pages that have a template of 'partial' and a role that is 'custom'. We can use *any custom meta* for the conditionals. We can also use multiple key =&gt; values for checking as you can see from the example.

### Errors

[](#errors)

This plugin will fail silently if no page is found, or the conditional is not met.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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.

### Community

Maintainers

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

---

Top Contributors

[![james2doyle](https://avatars.githubusercontent.com/u/1425304?v=4)](https://github.com/james2doyle "james2doyle (8 commits)")[![NeoBlack](https://avatars.githubusercontent.com/u/1128085?v=4)](https://github.com/NeoBlack "NeoBlack (2 commits)")

---

Tags

philecms-plugin

### Embed Badge

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

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

PHPackages © 2026

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