PHPackages                             cherry-project/templater - 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. cherry-project/templater

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

cherry-project/templater
========================

Cherry-project Template Engine

v1.1.0(7y ago)062[1 issues](https://github.com/cherry-framework/templater/issues)1MITPHPPHP &gt;=5.6.0

Since Mar 29Pushed 7y ago1 watchersCompare

[ Source](https://github.com/cherry-framework/templater)[ Packagist](https://packagist.org/packages/cherry-project/templater)[ Docs](https://github.com/ABGEO07/cherry-templater)[ RSS](/packages/cherry-project-templater/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

Cherry-Templater
================

[](#cherry-templater)

The Cherry-project Template wrapper

[![GitHub license](https://camo.githubusercontent.com/3feff048cfc75643c6c06675e9df44b69f1a8465c8cedef44b5a8695e4764262/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f616267656f30372f6368657272792d74656d706c617465722e737667)](https://github.com/ABGEO07/cherry-templater/blob/master/LICENSE)

[![GitHub release](https://camo.githubusercontent.com/dd49fcfc666c76fe62ccd561b722452ca5b0f4dbc798d1439d948ba437da234e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f616267656f30372f6368657272792d74656d706c617465722e737667)](https://github.com/ABGEO07/cherry-templater/releases)

[![Packagist Version](https://camo.githubusercontent.com/161f0b68bc3394e5570fe007ab0929784b25a6f7f26e17099de2aec6c31821c3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368657272792d70726f6a6563742f74656d706c617465722e737667 "Packagist Version")](https://packagist.org/packages/cherry-project/templater "Packagist Version")

---

Including
---------

[](#including)

**Install from composer** `composer require cherry-project/templater`

**Include Autoloader in your main file** (Ex.: index.php)

```
require_once __DIR__ . '/vendor/autoload.php';
```

Class Templater
---------------

[](#class-templater)

Import class

```
use Cherry\Templating\Templater;
```

Crete class new object

```
$templateEngine = new Templater(PATH_TO_TEMPLATES);
```

Where `PATH_TO_TEMPLATES` is path to your templates folder. Ex.: `__DIR__ . '/../examples/templates'`

Create new template in you'r templates folder (Ex.: `index.templater.php`) which contains simple HTML Markup with PHP:

```

    Hello, World!

    Hello, {{ name }}!

```

Then you can call `$templateEngine` objects `render` method with two arguments:

- Name of rendering template
- Arguments (PHP Variables) for template

Arguments is simple PHP Array:

```
$args = [
    'name' => 'Name 1',
    'surname' => 'Surname 1'
];
```

Our `index.templater.php` template contains only one PHP Variable `$name`, so we must pass it in `render` method:

```
$response = $templateEngine->render('index.templater.php', [
    'name' => 'Temuri'
]);
```

After that `$response` Variable will contain Response object and we can print it:

```
echo $response;
```

In first argument of `render` method we can put full filename of template (`index.templater.php`) or only template name (name without file extension Ex.: `index`)

**2019 © Cherry-project**

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity56

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

Total

2

Last Release

2556d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/003cac08dd47c34ad3a5ed454c2968ed6afea9e26d57033867d4166fa08b3555?d=identicon)[ABGEO](/maintainers/ABGEO)

---

Top Contributors

[![ABGEO](https://avatars.githubusercontent.com/u/19558543?v=4)](https://github.com/ABGEO "ABGEO (18 commits)")

---

Tags

cherrycomposertemplatertemplatingcherry

### Embed Badge

![Health badge](/badges/cherry-project-templater/health.svg)

```
[![Health](https://phpackages.com/badges/cherry-project-templater/health.svg)](https://phpackages.com/packages/cherry-project-templater)
```

###  Alternatives

[twig/twig

Twig, the flexible, fast, and secure template language for PHP

8.4k443.2M5.8k](/packages/twig-twig)[mustache/mustache

A Mustache implementation in PHP.

3.3k44.6M291](/packages/mustache-mustache)[smarty/smarty

Smarty - the compiling PHP template engine

2.3k39.1M395](/packages/smarty-smarty)[timber/timber

Create WordPress themes with beautiful OOP code and the Twig Template Engine

5.7k3.4M111](/packages/timber-timber)[league/plates

Plates, the native PHP template system that's fast, easy to use and easy to extend.

1.5k5.9M232](/packages/league-plates)[eftec/bladeone

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

8208.4M87](/packages/eftec-bladeone)

PHPackages © 2026

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