PHPackages                             quasilyte/ktemplate - 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. quasilyte/ktemplate

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

quasilyte/ktemplate
===================

v0.8.1(2y ago)6952[1 issues](https://github.com/quasilyte/KTemplate/issues)MITPHP

Since Sep 1Pushed 2y ago2 watchersCompare

[ Source](https://github.com/quasilyte/KTemplate)[ Packagist](https://packagist.org/packages/quasilyte/ktemplate)[ RSS](/packages/quasilyte-ktemplate/feed)WikiDiscussions master Synced 1mo ago

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

[![](_docs/logo.png)](_docs/logo.png)

Overview
--------

[](#overview)

[KTemplate](https://github.com/quasilyte/KTemplate) is a simple text template engine for PHP and [KPHP](https://github.com/VKCOM/kphp).

KTemplate uses a syntax similar to the Twig, Django and Jinja template languages.

You can try it [online](https://quasilyte.tech/ktemplate/)!

**Features:**

- **Cross-language support**: works for both PHP and KPHP
- **Security**: no eval or dynamic PHP code generation/loading is used
- **Compile-time checks**: many errors are caught during template compilation
- **Zero-copy data binding**: efficient and flexible data provider model
- **Performance**: templates are compiled to optimized bytecode

Quick Start
-----------

[](#quick-start)

```
$ composer require quasilyte/ktemplate
```

```
