PHPackages                             tregor/vinder - 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. tregor/vinder

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

tregor/vinder
=============

Vinder is a free and lightweight template based engine for PHP!

03PHP

Since Mar 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tregor/Vinder)[ Packagist](https://packagist.org/packages/tregor/vinder)[ RSS](/packages/tregor-vinder/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Vinder
======

[](#vinder)

[![Total Downloads](https://camo.githubusercontent.com/0d4941b23c70469533fab078fe8f6269d0b46c5f381a8a2e667cb6439b1d1914/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f747265676f722f76696e6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tregor/vinder)[![GitHub Version](https://camo.githubusercontent.com/daebbc97f0b08f02ea154ce998cfad7a2e13467f3664f636683a8b4dc356f433/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f747265676f722f56696e6465722e7376673f7374796c653d666c61742d737175617265)](https://github.com/tregor/Vinder)[![Last Commit](https://camo.githubusercontent.com/5f5d286893ce4a4374258da9936b5f460cff19a8c6a96c4199d7f273899baa1d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f747265676f722f56696e6465722e7376673f7374796c653d666c61742d737175617265)](https://github.com/tregor/Vinder)[![PHP Req](https://camo.githubusercontent.com/fe4c7659c348735ed923b8d4125ab2125bd03491bfdde3a9813ab942040f14be/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f747265676f722f76696e6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tregor/vinder)[![License](https://camo.githubusercontent.com/8f25db6f0ae7021337122de1de622a57bafc268a8b9c7b6cc8de7ce914c76986/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f747265676f722f56696e6465722e7376673f7374796c653d666c61742d737175617265)](LICENSE)

**Vinder** is a free and lightweight template based engine for PHP!

You can use it as example in small projects, where there is no reasons to use another some template engines, like Smarty. Becouse of lightweight code and new improvement features, **Vinder** is a good solutions for devs all over the world!

---

Navigation
----------

[](#navigation)

- [Requirements](#requirements)
- [Installation](#installation)
- [Quick Start](#quick-start-and-usage)
- [Documentation](#documentation)
- [TODO](#todo)
- [Contribute](#contribute)
- [License](#license)
- [Copyright](#copyright)

---

Requirements
------------

[](#requirements)

This library is supported by **PHP versions 5.4** or higher.

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

[](#installation)

The preferred way to install this extension is through [Composer](http://getcomposer.org/download/).

To install **Vinder library**, simply:

```
$ composer require tregor/vinder

```

You can also **clone the complete repository** with Git:

```
$ git clone https://github.com/treggor/Vinder.git

```

Or **install it manually**:

[Download Vinder.php](https://github.com/tregor/Vinder/archive/master.zip):

```
$ wget https://github.com/tregor/Vinder/archive/master.zip

```

Quick Start and Usage
---------------------

[](#quick-start-and-usage)

To use this class with **Composer**:

```
require __DIR__ . '/vendor/autoload.php';
use tregor\Vinder;
```

Or If you installed it **manually**, use it:

```
require_once __DIR__ . '/Vinder.php';
use tregor\Vinder;
```

After it you can do any your code, and than, create new Vinder object, provide template name, data array (that will be converted to vars) and optionaly set parsePHP flag (default - FALSE)

```
$data = [
    "foo" => "bar",
    "greetings" => "Hello, Vinder!",
];
new Vinder("main", $data, TRUE);
```

Second file you will need is a template. For this example it will be:

```
>
>
```

And, after compilation and rendering you will get the same output:

```
Hello, Vinder!
bar
```

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

[](#documentation)

Full documentation for Vinder you can find at [wiki home page!](https://github.com/tregor/Vinder/wiki)

TODO
----

[](#todo)

- Static usement of Vinder class.
- Make more settings.
- Add IF/IFELSE conditions.
- Add FOREACH, WHILE and other cycles.
- Become cooler than Smarty.
- Add tests.

Contribute
----------

[](#contribute)

If you would like to help, please take a look at the list of [issues](https://github.com/tregor/Vinder/issues) or the [ToDo](#todo) checklist.

**Pull requests**

- [Fork and clone](https://help.github.com/articles/fork-a-repo).
- Run the **tests**.
- Create a **branch**, **commit**, **push** and send me a [pull request](https://help.github.com/articles/using-pull-requests).

License
-------

[](#license)

This project is licensed under **MIT license**. See the [LICENSE](LICENSE) file for more info.

Copyright
---------

[](#copyright)

By tregor 2019

Please let me know, if you have feedback or suggestions.

You can contact me on [Facebook](https://www.facebook.com/tregor1997) or through my [email](mailto:tregor1997@gmail.com).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4541631?v=4)[Egor Davydov](/maintainers/tregor)[@tregor](https://github.com/tregor)

---

Top Contributors

[![tregor](https://avatars.githubusercontent.com/u/4541631?v=4)](https://github.com/tregor "tregor (2 commits)")

### Embed Badge

![Health badge](/badges/tregor-vinder/health.svg)

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

###  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)
