PHPackages                             esase/tiny-view - 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. esase/tiny-view

ActiveLibrary[Framework](/categories/framework)

esase/tiny-view
===============

The simple template engine for representation of your html code.

v1.0.0(5y ago)075MITPHPPHP ^7.4 || ^8.0

Since Aug 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/esase/tiny-view)[ Packagist](https://packagist.org/packages/esase/tiny-view)[ RSS](/packages/esase-tiny-view/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

tiny-view
=========

[](#tiny-view)

[![Build Status](https://camo.githubusercontent.com/87eb2df8026039d3d7227bf847a1acebc4cfbc2be4b8fe4bf27b54bc423cf46d/68747470733a2f2f7472617669732d63692e636f6d2f65736173652f74696e792d766965772e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/github/esase/tiny-view/builds)[![Coverage Status](https://camo.githubusercontent.com/7423709cb3bcaf08b0daf4345c6410741a7ea23d7b8e6fda9c62425cc8b496f5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f65736173652f74696e792d766965772f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/esase/tiny-view?branch=master)

**Tiny/View** separates your business logic from its representation, it means you can store your `view` as a list of separated `.phtml` files and pass there you data keeping you controllers clean.

The package is very small and fast due to using native `php` inside templates and layouts, yes we don't use any extra markup language, it's only relies on the php's [alternative syntax](https://www.php.net/control-structures.alternative-syntax)

There are only two main entities: `templates` and `layouts`.

`Templates` are used for displaying small peaces of information like list of users, a login form, etc. And the `layouts` which work as wrappers for those templates. For instance you can have several layouts with already included `css` and `js` files and It makes you life easier because you don't need to specify any `js` and `css` files for every template.

Template
--------

[](#template)

```
