PHPackages                             minii-php/minii - 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. minii-php/minii

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

minii-php/minii
===============

Minii, a simple template engine for PHP!

1.0.0(8y ago)215MITPHPPHP &gt;=7.0

Since Jan 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/VictorManoel/Minii)[ Packagist](https://packagist.org/packages/minii-php/minii)[ RSS](/packages/minii-php-minii/feed)WikiDiscussions master Synced today

READMEChangelog (2)DependenciesVersions (2)Used By (0)

Minii Template
==============

[](#minii-template)

**Minii**, is a simple template engine for PHP!

Install
-------

[](#install)

You can install it using [Composer](https://getcomposer.org/).

```
composer require minii-php/minii

```

Config
------

[](#config)

First you need create the config.

```
$config = [

    'views' => 'app/views',
    'includes' => 'app/views/components',
    'globals' => [
        'root' => 'http://localhost:8000/'
    ]
];

```

- *views* : Is the location of the views.
- *includes* : Is the location of the includes.
- *globals* : Is the global variables.

Use
---

[](#use)

```
// $... = new Minii\View( [ Config ] );
$minii = new Minii\View($config);

// $...->render( View , [ Variables ] );
echo $minii->render('home',['name'=>'Minii']);

```

Render
------

[](#render)

**The Minii use HTML files:**

### Load Includes

[](#load-includes)

You may load includes out of the view.

> app/views/components/header.html

```
// $...->load( Include , [ Variables ] );
$header = $minii->load('header',['name'=>'Minii']);

```

### Delimiters

[](#delimiters)

- {{ $... }} : Use to print a variable.
- {% ... %} : Use to include a component.

> app/views/home.html

```
{% header %}

    {{ $name }}

{% footer %}

```

**You can use the variables in includes:**

> app/views/components/header.html

```
// header include

        {{ $name }}

```

### Control Structures

[](#control-structures)

**If Statements**

You may construct if statements using the *@if*, *@elif*, *@else*, and *@endif* directives.

```
@if( $num == 1 )

    $num is equal to 1

@elif( $num > 1)

    $num is greater than 1

@else

    $num is less than 1

@endif

```

**Loops**

```
@for ($i = 0; $i < 10; $i++)

    The current value is {{ $i }}

@endfor

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3078d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88a580b8449cdda9cf50eaa6bfbe0314d13fd16ae063ae8a044ef8ba7ecf68d1?d=identicon)[victor\_8d](/maintainers/victor_8d)

---

Top Contributors

[![VictorManoel](https://avatars.githubusercontent.com/u/15956748?v=4)](https://github.com/VictorManoel "VictorManoel (3 commits)")

### Embed Badge

![Health badge](/badges/minii-php-minii/health.svg)

```
[![Health](https://phpackages.com/badges/minii-php-minii/health.svg)](https://phpackages.com/packages/minii-php-minii)
```

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3861.2M](/packages/limenius-react-bundle)[area17/laravel-auto-head-tags

Laravel Auto Head Tags helps you build the list of head elements for your app

4616.0k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

WikiRenderer is a library to generate HTML or anything else from wiki content.

1712.2k1](/packages/jelix-wikirenderer)[webkinder/sproutset

A Composer package for handling responsive images in Roots Bedrock + Sage + Blade projects.

281.8k](/packages/webkinder-sproutset)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
