PHPackages                             sensorario/engine - 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. sensorario/engine

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

sensorario/engine
=================

yet another template engine

v1.1.2(3y ago)183PHP

Since Mar 25Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sensorario/engine)[ Packagist](https://packagist.org/packages/sensorario/engine)[ RSS](/packages/sensorario-engine/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (2)Versions (31)Used By (0)

Engine
======

[](#engine)

This is a php engine. Made just to play. Learn. And becouse I simply love code. Please do not use this in production. It works. It is tested. But I am using it just to make some videos about open source or just for training.

\[TOC\]

Components
----------

[](#components)

- [Engine](/src/Engine/) - the engine
- [Form](/src/Engine/Ui/Form) - forms
- [Grid](/src/Engine/Ui/Grid) - grid
- [View](/src/Engine/Ui/View) - search items

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

[](#installation)

```
composer install sensorario/engine

```

### Usage

[](#usage)

```
require __DIR__ . '/vendor/autoload.php';
use Sensorario\Engine\EngineFactory;
$engine = (new EngineFactory)->getEngine();
$engine->render('template', $model);

```

### Foreach

[](#foreach)

```

    {% foreach items as item %}
    {{item.id}}
    {% endforeach %}

```

### If statement

[](#if-statement)

```
{% if foo.bar is 42 %}
{% endif %}

```

UI
--

[](#ui)

This engine provides few UI items. A Grid, paginated. A Form.

### View

[](#view)

```
{{View:{
    "model": {
        "title":"Ricerca"
    }
}}}View

```

### Form

[](#form)

```
{{Form:{
    "form": {
        "method": "POST",
        "action": "cippalippa"
    },
    "fields": [
        { "name" : "name" },
        { "name" : "surname" },
        { "name" : "ciaone" },
        { "name" : "dob" }
    ]
}}}Form

```

### Grid

[](#grid)

```
{{Grid:{
    "source":{
        "repository":"Sensorario.Engine.ExampleRepo",
        "resource":"",
        "itemPerPage":"2"
    },
    "model":{
        "title":"Griglia",
        "headers": [
            { "type" : "text" , "field" : "name", "name" : "NOME" },
            { "type" : "text" , "field" : "surname", "name" : "COGNOME" }
        ],
        "rowIdentifier":"id"
    }
}}}Grid

```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~2 days

Recently: every ~8 days

Total

30

Last Release

1142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6deb026c846017d92a6feb598acbbf7ad4ac8852bdd39448647dee004402182f?d=identicon)[sensorario](/maintainers/sensorario)

---

Top Contributors

[![sensorario](https://avatars.githubusercontent.com/u/820248?v=4)](https://github.com/sensorario "sensorario (84 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/sensorario-engine/health.svg)

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

###  Alternatives

[limenius/react-bundle

Client and Server-side react rendering in a Symfony Bundle

3851.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.1k](/packages/area17-laravel-auto-head-tags)[jelix/wikirenderer

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

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

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

282.2k](/packages/webkinder-sproutset)

PHPackages © 2026

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