PHPackages                             biurad/templating - 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. biurad/templating

ActiveLibrary

biurad/templating
=================

A library that provides all the tools needed in working with any kind of template system

v0.1.0(5y ago)01.3k[3 PRs](https://github.com/biurad/php-templating/pulls)BSD-3-ClausePHPPHP ^7.1 || ^8.0CI passing

Since Oct 21Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/biurad/php-templating)[ Packagist](https://packagist.org/packages/biurad/templating)[ Docs](https://www.biurad.com)[ Fund](https://biurad.com/sponsor)[ Patreon](https://www.patreon.com/biurad)[ RSS](/packages/biurad-templating/feed)WikiDiscussions master Synced today

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

The Biurad PHP Template UI
==========================

[](#the-biurad-php-template-ui)

[![PHP Version](https://camo.githubusercontent.com/8ba3b1073e92e631576f5c79946931169f492297f4ff10948ac745bcf34713d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6269757261642f74656d706c6174696e672e7376673f7374796c653d666c61742d73717561726526636f6c6f72423d253233383839324246)](http://php.net)[![Latest Version](https://camo.githubusercontent.com/5d334a6cddb00f25df531efac2aa8858623f5f032f79b6102e0f7675a5f32e9b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6269757261642f74656d706c6174696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/biurad/templating)[![Workflow Status](https://camo.githubusercontent.com/1cbb7adcd371772ae227ac220d5f320f1729fb44530e94bd740bf5e79e2ffb70/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6269757261642f7068702d74656d706c6174696e672f6275696c643f7374796c653d666c61742d737175617265)](https://github.com/biurad/php-templating/actions?query=workflow%3Abuild)[![Code Maintainability](https://camo.githubusercontent.com/f97051394858b518e43556d9d4bd48d79bae519a145706ea2c94cb84a792f042/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f6269757261642f7068702d74656d706c6174696e673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/biurad/php-templating)[![Coverage Status](https://camo.githubusercontent.com/b5ff8b5b95c1ef8737343bcffcd450cb75e2fa46ebd4b8160fd609c6a81b67a6/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f6269757261642f7068702d74656d706c6174696e673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/biurad/php-templating)[![Quality Score](https://camo.githubusercontent.com/cf4946f69fb0d7242bde05f1a3dfa3cbcb9662e251246345400480eeaf5fd090/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6269757261642f7068702d74656d706c6174696e672e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/biurad/php-templating)

---

**biurad/php-templating** is server side template ui for [PHP](https://php.net) 7.2+ created by [Divine Niiquaye](https://github.com/divineniiquaye). This library provides all the tools needed in working with any kind of template system and offers a structured solution to implement server side renderable template engines (Twig, Stempler, Latte, Blade, or native PHP templates) segregation.

📦 Installation &amp; Basic Usage
--------------------------------

[](#-installation--basic-usage)

This project requires [PHP](https://php.net) 7.2 or higher. The recommended way to install, is via [Composer](https://getcomposer.org). Simply run:

```
$ composer require biurad/templating
```

This library is shipped out of the box with three high performance and dynamic renders for fast server side templating. It also support multiple rendering (can render templates declared for different renderers all at once).

Again you don't have to worry about declaring absolute path to every single template file. Set the storage to where paths can be found, enter the name of the template file. The rest will be taken care of return the rendered result (ultimate HTML).

```
use Biurad\UI\Renders\PhpNativeRender;
use Biurad\UI\Helper\SlotsHelper;
use Biurad\UI\FilesystemStorage;
use Biurad\UI\Template;

$filesystemLoader = new FilesystemStorage(__DIR__.'/views');
$templating = new Template($filesystemLoader);

// Before adding a template renderer, you can add a namespace path
// $templating->addNamespace('MyBundle', __DIR__ . '/vendor/company/package/Resources');

// Add a template compiler renderer to Template.
$phpRenderEngine = new PhpNativeRender();
$templating->addRender($phpRenderEngine);

// You can also render an absolute path except for the fact that, it is not cacheable.
echo $templating->render('hello', ['firstname' => 'Divine']);

// hello.phtml or hello.php or hello.html
Hello, !
```

📓 Documentation
---------------

[](#-documentation)

For in-depth documentation before using this library.. Full documentation on advanced usage, configuration, and customization can be found at [docs.divinenii.com](https://docs.biurad.com/php/templating).

⏫ Upgrading
-----------

[](#-upgrading)

Information on how to upgrade to newer versions of this library can be found in the [UPGRADE](UPGRADE-1.x.md).

🏷️ Changelog
------------

[](#️-changelog)

[SemVer](http://semver.org/) is followed closely. Minor and patch releases should not introduce breaking changes to the codebase; See [CHANGELOG](CHANGELOG-0.x.md) for more information on what has changed recently.

Any classes or methods marked `@internal` are not intended for use outside of this library and are subject to breaking changes at any time, so please avoid using them.

🛠️ Maintenance &amp; Support
----------------------------

[](#️-maintenance--support)

(This policy may change in the future and exceptions may be made on a case-by-case basis.)

- A new **patch version released** (e.g. `1.0.10`, `1.1.6`) comes out roughly every month. It only contains bug fixes, so you can safely upgrade your applications.
- A new **minor version released** (e.g. `1.1`, `1.2`) comes out every six months: one in June and one in December. It contains bug fixes and new features, but it doesn’t include any breaking change, so you can safely upgrade your applications;
- A new **major version released** (e.g. `1.0`, `2.0`, `3.0`) comes out every two years. It can contain breaking changes, so you may need to do some changes in your applications before upgrading.

When a **major** version is released, the number of minor versions is limited to five per branch (X.0, X.1, X.2, X.3 and X.4). The last minor version of a branch (e.g. 1.4, 2.4) is considered a **long-term support (LTS) version** with lasts for more that 2 years and the other ones cam last up to 8 months:

**Get a professional support from [Biurad Lap](https://team.biurad.com) after the active maintenance of a released version has ended**.

🧪 Testing
---------

[](#-testing)

```
$ ./vendor/bin/phpunit
```

This will tests divineniiquaye/php-rade will run against PHP 7.4 version or higher.

🏛️ Governance
-------------

[](#️-governance)

This project is primarily maintained by [Divine Niiquaye Ibok](https://github.com/divineniiquaye). Contributions are welcome 👷‍♀️! To contribute, please familiarize yourself with our [CONTRIBUTING](./.github/CONTRIBUTING.md) guidelines.

To report a security vulnerability, please use the [Biurad Security](https://security.biurad.com). We will coordinate the fix and eventually commit the solution in this project.

🙌 Sponsors
----------

[](#-sponsors)

Are you interested in sponsoring development of this project? Reach out and support us on [Patreon](https://www.patreon.com/biurad) or see  for a list of ways to contribute.

👥 Credits &amp; Acknowledgements
--------------------------------

[](#-credits--acknowledgements)

- [Divine Niiquaye Ibok](https://github.com/divineniiquaye)
- [All Contributors](https://github.com/biurad/php-templating/contributors)

📄 License
---------

[](#-license)

The **divineniiquaye/php-rade** library is copyright © [Divine Niiquaye Ibok](https://divinenii.com) and licensed for use under the [![Software License](https://camo.githubusercontent.com/d8c1f1b4c1b899449e9539d4de1ca66abde4c190f41ce41e7abc3330da5cad2e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4253442d2d332d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance43

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

2027d ago

### Community

Maintainers

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

---

Top Contributors

[![divineniiquaye](https://avatars.githubusercontent.com/u/53147395?v=4)](https://github.com/divineniiquaye "divineniiquaye (75 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

biuradphptemplatetemplatinguiPHP7biuradbiuradphp

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/biurad-templating/health.svg)

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

###  Alternatives

[ifsnop/mysqldump-php

PHP version of mysqldump cli that comes with MySQL

1.3k5.5M69](/packages/ifsnop-mysqldump-php)[rodenastyle/stream-parser

PHP Multiformat Streaming Parser

443195.7k2](/packages/rodenastyle-stream-parser)[sunrise/vin

VIN decoder for PHP 7.1+ based on ISO-3779

83127.0k](/packages/sunrise-vin)[phplicengine/bitly

Bitly API v4

22277.3k](/packages/phplicengine-bitly)[mattbit/mysql-compat

Backward compatibility for old mysql\_\* functions with PDO

2653.7k](/packages/mattbit-mysql-compat)[melbahja/semver

PHP Semantic Versioning Parser and Comparator

2122.1k5](/packages/melbahja-semver)

PHPackages © 2026

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