PHPackages                             maveius/liphte - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. maveius/liphte

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

maveius/liphte
==============

Lightweight &amp; minimalistic HTML Builder/Generator for PHP

1.0(5y ago)2144MITPHPPHP &gt;=5.6.9

Since Jun 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/maveius/liphte)[ Packagist](https://packagist.org/packages/maveius/liphte)[ Docs](https://github.com/maveius/liphte)[ RSS](/packages/maveius-liphte/feed)WikiDiscussions master Synced 1mo ago

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

[![ Liphte ](https://camo.githubusercontent.com/924c82c24da73089a2b5ff3aab66decf0abded2a30f5e1e9d95e7dc68af2e977/687474703a2f2f6d6176656975732e706c2f696d672f706f7274666f6c696f2f6c69706874652d6269672e706e67)](https://camo.githubusercontent.com/924c82c24da73089a2b5ff3aab66decf0abded2a30f5e1e9d95e7dc68af2e977/687474703a2f2f6d6176656975732e706c2f696d672f706f7274666f6c696f2f6c69706874652d6269672e706e67)

Liphte
======

[](#liphte)

Lightweight &amp; minimalistic HTML Builder/Generator (or maybe Template Engine) for PHP

What is liphte ?
----------------

[](#what-is-liphte-)

It's lightweight and minimalistic wrapper of html or dom builder based on [windwalker-dom](https://github.com/ventoviro/windwalker-dom) and [windwalker-html](https://github.com/ventoviro/windwalker-html), but inspired by projects [rudykocur/pyeve](https://github.com/rudykocur/pyeve) and [rudykocur/breve](https://github.com/rudykocur/breve) which is simplest way to create or generate html from controllers or others php files.

#### Example:

[](#example)

```
/** Import **/
use liphte\tags\html\Tag;
use liphte\tags\html\Attribute as a;

/** In your code (for example controller) **/
  $t = Liphte::tag();

  $result = $t->table ([ 'style' => 'border: 1px solid #070;' ],
      [
          $t->tr(
              [
                  $t->td( a::style( 'border: 1px solid #000;' ),
                      'Column 1'
                  ),
                  $t->td( a::style( 'border: 1px solid #000;' ),
                      'Column 2'
                  )
              ]
          )
      ]
  );
  echo $result . "\n";
```

#### Output:

[](#output)

```
Column 1Column 2
```

Installing Liphte
-----------------

[](#installing-liphte)

#### Composer required:

[](#composer-required)

```
{
    "require": {
        "maveius/liphte": "1.0"
    }
}
```

or

```
{
    "require": {
        "maveius/liphte": "dev-master"
    }
}
```

1. Add required package to `composer.json`
2. Run `composer update` in your project directory.
3. Enjoy! Import library and use like in example.

Requirements:
-------------

[](#requirements)

- Tested on: Apache
- PHP &gt;= 5.6(.9)
- MySQL 5+

Changelog
---------

[](#changelog)

- v1.0 : 10 June 2015:

    - Refactoring code and direcotries structure
- v0.1 : 6 June 2015:

    - Init repository &amp; implement first concept.

Main Developers
---------------

[](#main-developers)

- [maveius](http://maveius.pl)

Licence
-------

[](#licence)

- MIT

Home Page
---------

[](#home-page)

-

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Unknown

Total

1

Last Release

2095d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2152176?v=4)[Maveius](/maintainers/maveius)[@maveius](https://github.com/maveius)

---

Top Contributors

[![maveius](https://avatars.githubusercontent.com/u/2152176?v=4)](https://github.com/maveius "maveius (58 commits)")

---

Tags

libraryhtmlbuilderwrapper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/maveius-liphte/health.svg)

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

###  Alternatives

[trafficcophp/bytebuffer

Node.js inspired byte stream buffer for PHP.

33437.2k17](/packages/trafficcophp-bytebuffer)

PHPackages © 2026

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