PHPackages                             monotek/minitpl - 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. monotek/minitpl

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

monotek/minitpl
===============

Miniature fully featured PHP template engine

v1.1.5(3y ago)125.5k61CC BY-SA 3.0PHPPHP &gt;=5.3.0

Since Apr 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/titpetric/minitpl)[ Packagist](https://packagist.org/packages/monotek/minitpl)[ Docs](https://github.com/titpetric/minitpl)[ RSS](/packages/monotek-minitpl/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (8)Used By (1)

MiniTPL
=======

[](#minitpl)

The goal of the MiniTPL template engine is to provide a miniature framework which allows you to rapidly create and consume Smarty-like templates without adding the overhead of Smarty to your choice of a PHP framework.

In benchmarks the speed of Mini TPL is very close to PHP itself. All that is usually needed for Mini TPL is a 3KB PHP code overhead. So it beats Smarty, and usual PHP vsprintf and str\_replace functionality.

With a total size of about 13KB and the functionality contained, this is one of the smallest full featured template engines for PHP to date.

MiniTPL is available on [packagist as monotek/minitpl](https://packagist.org/packages/monotek/minitpl).

To start using MiniTPL in your project with [composer](http://getcomposer.org/), create a composer.json file:

```
{
    "require": {
        "monotek/minitpl": ">=1.0"
    }
}

```

And run `composer install`. You can start using MiniTPL right away.

```
