PHPackages                             bonfim/tpl - 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. bonfim/tpl

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

bonfim/tpl
==========

Gerenciador de Templates PHP

v2.2.2(7y ago)127MITPHPPHP &gt;=7.1.0

Since Mar 10Pushed 6y agoCompare

[ Source](https://github.com/EdsonOnildoJR/PHP-Template-Engine)[ Packagist](https://packagist.org/packages/bonfim/tpl)[ Docs](https://github.com/EdsonOnildoJR/Sketch)[ RSS](/packages/bonfim-tpl/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (9)Dependencies (2)Versions (11)Used By (0)

PHP-Template-Engine
===================

[](#php-template-engine)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bc70977a38b480a00f1d56a6ee0e23b0db2489dcf397c7bee6dba6ca9efa4273/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6564736f6e6f6e696c646f2f74706c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/edsononildo/tpl)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/2140de8da795c44823e6896230a7a55043bbace1457a74dbafe15cd487776604/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4564736f6e4f6e696c646f4a522f5048502d54656d706c6174652d456e67696e652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/EdsonOnildoJR/PHP-Template-Engine)[![Coverage Status](https://camo.githubusercontent.com/ef3eaf6cd1ce37b6908cd46c88edff261aecdc0372ebab49b25abf98d43eaf27/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f4564736f6e4f6e696c646f4a522f5048502d54656d706c6174652d456e67696e652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/EdsonOnildoJR/PHP-Template-Engine/code-structure)[![Quality Score](https://camo.githubusercontent.com/a34b7eb5506ff7d3fb3880ed93e9ade6a810b8c4b5ebf99c05814d41a48b2ba7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f4564736f6e4f6e696c646f4a522f5048502d54656d706c6174652d456e67696e652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/EdsonOnildoJR/PHP-Template-Engine)[![Total Downloads](https://camo.githubusercontent.com/a5e0f03a23e692d6cb3ab983219508f8071ce53e7a0c7455d277e8c8010a055e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6564736f6e6f6e696c646f2f74706c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/edsononildo/tpl)

Table of Contents
-----------------

[](#table-of-contents)

- [Prerequisites](#prerequisites)
- [Installation](#installation)
- [Basic Usage](#basic-usage)
- [Sketch Tags](#sketch-tags)
    - [Variables](#variables)
    - [Conditional Expression](#conditional-expression)
    - [Loop](#loop)
    - [Function](#function)
    - [Include](#include)
- [Contributing](#contributing)
- [Security](#security)
- [Credits](#credits)
- [License](#license)

Prerequisites
-------------

[](#prerequisites)

- PHP 7.1+

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

[](#installation)

```
$ composer require EdsonOnildoJR/PHP-Template-Engine
```

Basic usage
-----------

[](#basic-usage)

Create an **index.php** file and require the autoload.php of composer

```
