PHPackages                             sigmaphp/sigmaphp-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. [Framework](/categories/framework)
4. /
5. sigmaphp/sigmaphp-template

ActiveLibrary[Framework](/categories/framework)

sigmaphp/sigmaphp-template
==========================

A powerful template engine for PHP

0.1.10(2w ago)029↓100%1MITPHPCI passing

Since Nov 22Pushed 3d ago1 watchersCompare

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

READMEChangelog (10)Dependencies (1)Versions (12)Used By (1)

SigmaPHP-Template
=================

[](#sigmaphp-template)

A powerful template engine for PHP. That you can use to build your web apps , with zero configuration and simple syntax.

Features
--------

[](#features)

- Print variables and evaluate expressions
- Extend and include templates , with support for **relative path**
- Load templates from sub-directories using dot notation
- All basic conditional statements *if*, *else if*, *else*
- Support loops on all kinds of iterators (strings , numbers and arrays)
- Support Blocks , to structure your templates
- Defining variables in the template
- Share variables between templates
- Registering custom directives
- Support for single/multiple lines comments
- Caching

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

[](#installation)

```
composer require agashe/sigmaphp-template

```

Documentation
-------------

[](#documentation)

#### Table of Contents

[](#table-of-contents)

- [Basic Usage](#basic-usage)
- [Template Files](#template-files)
- [Render Method](#render-method)
- [Parenthesis &amp; Quotes](#parenthesis--quotes)
- [Printing Variables](#printing-variables)
- [Expression Evaluation](#expression-evaluation)
- [Comments](#comments)
- [Extend &amp; Include Templates](#extend--include-templates)
- [Dot Notation Path](#dot-notation-path)
- [Relative Path](#relative-path)
- [Blocks](#blocks)
- [Defining Variables](#defining-variables)
- [Share Variables](#share-variables)
- [Conditions](#conditions)
- [Loops](#loops)
- [Custom Directives](#custom-directives)
- [Caching](#caching)
- [Examples](#examples)

### Basic Usage

[](#basic-usage)

To start using SigmaPHP-Template , we start by including the `autoload.php` file , then create new instance from the `Engine` class , finally we call the `render` method

```
