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

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

keruald/report
==============

Build a report with sections and entries. Markdown, PHP objects and HTML outputs.

0.1.0(4y ago)07BSD-2-ClausePHP

Since Feb 7Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/keruald/report)[ Packagist](https://packagist.org/packages/keruald/report)[ RSS](/packages/keruald-report/feed)WikiDiscussions main Synced 6d ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

keruald/report
==============

[](#kerualdreport)

Allow to build a report and output it.

Report skeleton
---------------

[](#report-skeleton)

### Introduction

[](#introduction)

A report is a collection of sections, a general title, and some metadata.

A section is a collection of entries, and a title. They can also be thought as the chapters of a book.

An entry is text and a title.

That gives the following hierarchy:

```
Report                  title   (sections)     properties
  ReportSection         title   (entries)
    ReportEntry         title   text

```

A full example can be found in the `tests/WithSampleReport.php` file.

### Simplified report

[](#simplified-report)

You can build a simplified version using only the ReportSection class:

```
use Keruald\Reporting\ReportSection;

$report = new ReportSection("A simple report about historical geometric problems");
$report->push("Issue 1", "Can we square a circle?");
$report->push("Issue 2", "Can we divise an angle by 3?");
$report->push("Issue 2", "Can we double a cube?");

print_r($report);
```

Output
------

[](#output)

The library provides HTML and Markdown output.

Examples of such output can be found in the `tests/data` folder.

Those output classes aren't mandatory to use to present the results: the report data structure can be easily walked with foreach loops to manipulate it.

Uses
----

[](#uses)

The **keruald/healthcheck** library uses this reporting library to generate a site health check, and present the results to help to remediate to the issues detected.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance47

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 57.1% 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

1560d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fa275e3c93d0f423ef8b7c1a848e6e4ea325225ea268e5fcce744e8ce3dd43b?d=identicon)[dereckson](/maintainers/dereckson)

---

Top Contributors

[![dereckson](https://avatars.githubusercontent.com/u/135563?v=4)](https://github.com/dereckson "dereckson (8 commits)")[![DorianVL](https://avatars.githubusercontent.com/u/55362814?v=4)](https://github.com/DorianVL "DorianVL (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tobai/magento2-geo-store-switcher

Switching websites/stores depending on current country.

3512.4k](/packages/tobai-magento2-geo-store-switcher)

PHPackages © 2026

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