PHPackages                             flatphp/lightemp - 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. flatphp/lightemp

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

flatphp/lightemp
================

light template engine

v1.2.0(4y ago)316MITPHPPHP &gt;=5.5

Since Oct 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/flatphp/lightemp)[ Packagist](https://packagist.org/packages/flatphp/lightemp)[ RSS](/packages/flatphp-lightemp/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (4)Used By (0)

Lightemp
========

[](#lightemp)

Lightemp is a light template engine.

Usage
=====

[](#usage)

```
$view = new \Lightemp\View('/project/view', array(
    'cache' => true,
    'vars' => array(
        'static' => 'http://static.some.com',
    ),
));

$name = 'Benjemin';
include $view->template('index.php', ['title' => 'Title of the document']);
```

Sample Template
===============

[](#sample-template)

head.php

```

  {$title}

```

index.php

```
>

{include test/head.php}

  hello

```

Cache
=====

[](#cache)

```
>

  Title of the document

  hello

```

Labels
======

[](#labels)

- {$var}
- {include template}
- {content template}

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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 ~437 days

Total

3

Last Release

1530d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e3e4d193838370dbe5119947cb84acd917f9e7dd4baf5ed9d0dbc88f26310fa5?d=identicon)[fredyang](/maintainers/fredyang)

---

Top Contributors

[![shukyoo](https://avatars.githubusercontent.com/u/2231396?v=4)](https://github.com/shukyoo "shukyoo (5 commits)")

---

Tags

templatelightemp

### Embed Badge

![Health badge](/badges/flatphp-lightemp/health.svg)

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

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.5k34.7M186](/packages/phpoffice-phpword)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

420137.3M46](/packages/rize-uri-template)[mopa/bootstrap-sandbox-bundle

Seperate live docs from code

256.8k](/packages/mopa-bootstrap-sandbox-bundle)[larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, reusable message configurations, and message layout and template view management.

143.7k](/packages/larablocks-pigeon)

PHPackages © 2026

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