PHPackages                             mezon/html-report - 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. mezon/html-report

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

mezon/html-report
=================

HTML Report Generator

1.0.4(4y ago)335MITPHPPHP &gt;=7.2.0

Since Jul 7Pushed 4y ago2 watchersCompare

[ Source](https://github.com/alexdodonov/mezon-html-report)[ Packagist](https://packagist.org/packages/mezon/html-report)[ Docs](https://github.com/alexdodonov/mezon-functional)[ RSS](/packages/mezon-html-report/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

Mezon HTML report generator
===========================

[](#mezon-html-report-generator)

Pros and cons
-------------

[](#pros-and-cons)

Mezon HTML report generator allows you to create reports in a simple and pretty way. This tool also shortens time wich you spend on coding.

This package is a part of [Mezon Framework](https://github.com/alexdodonov/mezon)

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

[](#installation)

Just type:

```
composer require mezon/html-report
```

Usage
-----

[](#usage)

Lets start from creating object of the report generator:

```
$report = new Html();
```

And since that moment we can add elements to the head or body:

```
// not that stylesheets are not validated, it is totally on your side
$report->head()->style()->selector('p')->css('color', 'red');
$report->head()->style()->selector('div')->css('color', 'green');;

$report->body()->p('Hello!');
$report->body()->div('World!');

// here we get HTML code in the variable $result
$result = $report->compile();
```

More complex examples
---------------------

[](#more-complex-examples)

This example shows that every call creates new tag (except `html` and `body`). So if you want to add multyple tags then you need to store tag into variable:

```
$table = $report->table();
$row = $table->tr();

$row->td()->innerHtml('#1');
$row->td()->innerHtml('Legolas');

$row->td()->innerHtml('#2');
$row->td()->innerHtml('Frodo');

$row->td()->innerHtml('#3');
$row->td()->innerHtml('Aragorn');
```

Supported tags
--------------

[](#supported-tags)

For now you can use following tags:

- body
- div
- h1
- h2
- h3
- h4
- h5
- head
- p
- strong
- style
- table
- td
- tr

Inner HTML
----------

[](#inner-html)

If you need more tags, you can use innerHtml like in the example below:

```
$report->body()->innerHtml('alert(1);');
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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

Total

5

Last Release

1627d ago

### Community

Maintainers

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

---

Top Contributors

[![alexdodonov](https://avatars.githubusercontent.com/u/14943896?v=4)](https://github.com/alexdodonov "alexdodonov (11 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mezon-html-report/health.svg)

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

###  Alternatives

[felippe-regazio/php-hot-reloader

A class to add a complete live reload feature to any php project

1063.4k](/packages/felippe-regazio-php-hot-reloader)

PHPackages © 2026

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