PHPackages                             yivi/very-simple-html-writer - 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. yivi/very-simple-html-writer

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

yivi/very-simple-html-writer
============================

This is a very simple HTML writer

0.1.0(8y ago)0301GPL-3.0-or-laterPHPPHP ^7.1

Since Mar 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/yivi/VerySimpleHtmlWriter)[ Packagist](https://packagist.org/packages/yivi/very-simple-html-writer)[ RSS](/packages/yivi-very-simple-html-writer/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (1)

VerySimpleHtmlWriter
====================

[](#verysimplehtmlwriter)

No safety belt. No speed limit. No parachute. No nothing. This is an HTML party and sanitizers and error checkers are not invited. XSS gallore!

I wanted a quick way to generate HTML for a simple project. You shouldn't be using this anywhere unless you know what you are doing and why you are doing it. Even then, you *shouldn't*.

Usage (very alpha, much changing):
----------------------------------

[](#usage-very-alpha-much-changing)

```
$writer        = new HtmlWriterService();
$main_layout   = $writer->layout('main');

$openBody      = $writer->tag('body')->leaveOpen();
$title         = $writer->fragment('hello, world!');
$h1            = $writer->tag('h1')->content($title);

$main_layout->addParts($openBody, $h1);

$ul_nav        = $writer->tag('ul')
                      ->attribute('role', 'navigation')
                      ->addClass('navigation')
                      ->id('navigation');

$nav_li_layout = $writer->layout('nav');

$li_home       = $writer->tag('li')->content($writer->fragment('Home'));
$li_contact    = $writer->tag('li')->content($writer->fragment('Contact'));
$li_about      = $writer->tag('li')->content($writer->fragment('About'));

$nav_li_layout->addParts($li_home, $li_contact, $li_about);

$ul_nav->content($nav_li_layout);

$closeBody     = $writer->tag('body')->justClose();

$main_layout->addParts($ul_nav, $closeBody)

echo $main_layout->compile();

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

2952d ago

### Community

Maintainers

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

---

Top Contributors

[![yivi](https://avatars.githubusercontent.com/u/1815039?v=4)](https://github.com/yivi "yivi (56 commits)")

### Embed Badge

![Health badge](/badges/yivi-very-simple-html-writer/health.svg)

```
[![Health](https://phpackages.com/badges/yivi-very-simple-html-writer/health.svg)](https://phpackages.com/packages/yivi-very-simple-html-writer)
```

###  Alternatives

[albertoarena/laravel-event-sourcing-generator

Laravel event sourcing domain generator

148.2k](/packages/albertoarena-laravel-event-sourcing-generator)

PHPackages © 2026

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