PHPackages                             ark/template - 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. ark/template

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

ark/template
============

Native PHP template engine

v0.1.2(10y ago)92961MITPHP

Since Mar 22Pushed 10y ago2 watchersCompare

[ Source](https://github.com/arkphp/template)[ Packagist](https://packagist.org/packages/ark/template)[ RSS](/packages/ark-template/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

PHP Template [![Build Status](https://camo.githubusercontent.com/c62f55f4bb16ca18eef3de419b226b950e96c177a65719d02978dcb9b8292075/68747470733a2f2f7472617669732d63692e6f72672f61726b7068702f74656d706c6174652e706e67)](https://travis-ci.org/arkphp/template)
=============================================================================================================================================================================================================================================================

[](#php-template-)

Native PHP template engine

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

[](#installation)

```
composer require ark/template

```

Usage
-----

[](#usage)

```
use Ark\Template\Engine;

$template = new Engine('/path/to/templates/root');

$template->render('index.php', [
    'username' => 'hello'
]);
```

layout.php:

```
DOCTYPE html>
