PHPackages                             mkgor/puff - 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. mkgor/puff

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

mkgor/puff
==========

Flexible and lightweight template engine for PHP

v1.0(6y ago)22MITPHPPHP ^7.1CI failing

Since Dec 28Pushed 6y ago1 watchersCompare

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

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

[![Coverage](https://camo.githubusercontent.com/847cc5d1326bb8fd6aa889331c737d3ebb76d7245f605d6cf2cad0bc9f4c8ba8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d39392e31342532352d677265656e)](https://camo.githubusercontent.com/847cc5d1326bb8fd6aa889331c737d3ebb76d7245f605d6cf2cad0bc9f4c8ba8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d39392e31342532352d677265656e)[![GitHub repo size](https://camo.githubusercontent.com/51b9545194feed4ae4bd0e757b7250417180772f91e58941769cdb97a747beeb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6d6b676f722f70756666)](https://camo.githubusercontent.com/51b9545194feed4ae4bd0e757b7250417180772f91e58941769cdb97a747beeb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f6d6b676f722f70756666)[![Packagist](https://camo.githubusercontent.com/757fdbe6105b3bd7b9fb6af03c88fcec75a0f6a1a089bc4bfb2258a031a17dc5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6b676f722f70756666)](https://camo.githubusercontent.com/757fdbe6105b3bd7b9fb6af03c88fcec75a0f6a1a089bc4bfb2258a031a17dc5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6d6b676f722f70756666)[![GitHub All Releases](https://camo.githubusercontent.com/a89af5c21f626a287d1913455ba00ac8eb088fc533f1dc5e247c8bc03f08856e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f6d6b676f722f707566662f746f74616c)](https://camo.githubusercontent.com/a89af5c21f626a287d1913455ba00ac8eb088fc533f1dc5e247c8bc03f08856e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f6d6b676f722f707566662f746f74616c)

Puff
====

[](#puff)

[![Logo](https://camo.githubusercontent.com/95f1beadf47a448344b19d62ea1cdaa157cc84832e0398a68a9888eb3dd47ac3/68747470733a2f2f692e696d6775722e636f6d2f367745554365482e6a7067)](https://camo.githubusercontent.com/95f1beadf47a448344b19d62ea1cdaa157cc84832e0398a68a9888eb3dd47ac3/68747470733a2f2f692e696d6775722e636f6d2f367745554365482e6a7067)

Hackable and lightning fast template engine for PHP, which is inspired by Twig.

Contents
--------

[](#contents)

- [Requirments](https://github.com/mkgor/puff#requirments)
- [Installation](https://github.com/mkgor/puff#installation)
- [Quickstart](https://github.com/mkgor/puff#quickstart)
- [Specification](https://github.com/mkgor/puff#specification)
    - [For](https://github.com/mkgor/puff#for)
    - [If-else](https://github.com/mkgor/puff#if-else)
    - [Import](https://github.com/mkgor/puff#import)
    - [Set](https://github.com/mkgor/puff#set)
    - [Extends and Position](https://github.com/mkgor/puff#extends-and-position)
- [Filters](https://github.com/mkgor/puff#filters-system)
- [Extensions system](https://github.com/mkgor/puff#extensions-system)
    - [Making new statement(element)](https://github.com/mkgor/puff#making-new-statement-element)
    - [Making new filter](https://github.com/mkgor/puff#making-new-filter)
- [Syntax editing](https://github.com/mkgor/puff#syntax-editing)
- [Escaping tags](https://github.com/mkgor/puff#escaping-tags)

Requirments
-----------

[](#requirments)

- PHP 7.1 or higher (for Puff core)
- Mbstring extension (for UpperCaseFilter)

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

[](#installation)

Install Puff via composer

```
composer require mkgor/puff
```

Quickstart
----------

[](#quickstart)

```
