PHPackages                             setono/html-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. setono/html-element

ActiveLibrary

setono/html-element
===================

PHP library to generate HTML elements

v1.0.0(2y ago)023.9k↓78.3%2MITPHPPHP &gt;=8.1

Since Apr 12Pushed 2y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (4)Versions (3)Used By (2)

PHP library to generate HTML elements
=====================================

[](#php-library-to-generate-html-elements)

[![Latest Version](https://camo.githubusercontent.com/782d9bc0b62749afe4ef8a078f9e898c75331bc560f3d02a9af423ae56c51992/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f68746d6c2d656c656d656e742f762f737461626c65)](https://packagist.org/packages/setono/html-element)[![Software License](https://camo.githubusercontent.com/f189824b38636d13aea476cb36a94c3a5d196d3238c3b0c39844febcd14721f6/68747470733a2f2f706f7365722e707567782e6f72672f7365746f6e6f2f68746d6c2d656c656d656e742f6c6963656e7365)](LICENSE)[![Build Status](https://github.com/Setono/html-element/workflows/build/badge.svg)](https://github.com/Setono/html-element/actions)[![Code Coverage](https://camo.githubusercontent.com/b8634ffed0c38fc9d9d44decde1735e9c0763c52d116dc3db9310e39545eb486/68747470733a2f2f636f6465636f762e696f2f67682f5365746f6e6f2f68746d6c2d656c656d656e742f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/Setono/html-element)[![Mutation testing](https://camo.githubusercontent.com/fe93bd7bd5d8bd8d6b2ef23d7f59abefb9a8d0e928e1b126885a162fb96947b7/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532465365746f6e6f25324668746d6c2d656c656d656e742532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/Setono/html-element/master)

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

[](#installation)

```
composer require setono/html-element
```

Usage
-----

[](#usage)

```
use Setono\HtmlElement\HtmlElement;

echo (new HtmlElement('p', 'Lorem ipsum'))->render(); // output: Lorem ipsum

echo HtmlElement::p('Lorem ipsum')->render(); // output: Lorem ipsum

$outer = HtmlElement::div()->withClass('container');
$inner = HtmlElement::div('Layout');

echo $outer->append($inner)->render(); // output: Layout
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

801d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2412177?v=4)[Joachim Løvgaard](/maintainers/loevgaard)[@loevgaard](https://github.com/loevgaard)

---

Top Contributors

[![loevgaard](https://avatars.githubusercontent.com/u/2412177?v=4)](https://github.com/loevgaard "loevgaard (36 commits)")

---

Tags

htmlphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/setono-html-element/health.svg)

```
[![Health](https://phpackages.com/badges/setono-html-element/health.svg)](https://phpackages.com/packages/setono-html-element)
```

PHPackages © 2026

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