PHPackages                             millancore/view-element - 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. millancore/view-element

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

millancore/view-element
=======================

Template system without configuration or dependencies.

v0.1(3y ago)06MITPHPPHP &gt;=7.4

Since Oct 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/millancore/viewElement)[ Packagist](https://packagist.org/packages/millancore/view-element)[ RSS](/packages/millancore-view-element/feed)WikiDiscussions master Synced 1mo ago

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

ViewElement
===========

[](#viewelement)

This is a library for creating modular views in PHP, without configuration or dependencies.

- Slot
- Render
- Filters

Install
=======

[](#install)

```
 composer require millancore/view-element
```

Slot
----

[](#slot)

You can create a template without defining the template body, it is passed by the view that will use it.

You can also make use of the helper functions `vxSlot()`, `vxStart(...)`, `vxEnd()`, which will make it easier for you to define components with fewer lines of code.

#### template\_list.php

[](#template_listphp)

```

    Test parent element
