PHPackages                             mneudert/junit-scribe - 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. mneudert/junit-scribe

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

mneudert/junit-scribe
=====================

Utility to write JUnit XML Documents.

v0.1.0(12y ago)11381MITPHPPHP &gt;=5.3.0

Since Jun 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/mneudert/junit-scribe)[ Packagist](https://packagist.org/packages/mneudert/junit-scribe)[ Docs](https://github.com/mneudert/junit-scribe)[ RSS](/packages/mneudert-junit-scribe/feed)WikiDiscussions master Synced today

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

JUnit Scribe
============

[](#junit-scribe)

Utility to write JUnit XML Documents.

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

[](#installation)

Installation can be done using composer:

```
{
    "require": {
        "mneudert/junit-scribe": "dev-master"
    }
}
```

Or simply include in using your favorite autoloading solution.

Usage
-----

[](#usage)

```
use JUnitScribe\Document;
use JUnitScribe\Writer\StringWriter;

$document = new Document();
$document
    ->addSuite()
        ->setName('SuiteAllOk')
        ->addCase()
            ->setName('SomeAssertions')
            ->setAssertions(10)
            ->setTime(0.1236)
            ->getParent()
        ->addCase()
            ->setName('MoreAssertiongs')
            ->setAssertions(7)
            ->setTime(0.2242)
            ->getParent()
        ->getParent()
    ->addSuite()
        ->setName('SuiteNotOk')
        ->addCase()
            ->setName('HasError')
            ->setAssertions(9)
            ->setTime(1.4424)
            ->addError()
                ->setMessage('An Error Occurred.')
                ->setMessageBody('Some lengthy stacktrace or message body for the error.')
                ->getParent()
            ->getParent()
        ->addCase()
            ->setName('HasFailure')
            ->setAssertions(7)
            ->setTime(1.0023)
            ->addFailure()
                ->setMessage('A Failure Occurred.')
                ->setMessageBody('Some lengthy stacktrace or message body for the failure.');

$writer = new StringWriter();
$writer->setDocument($document);

echo $writer->formatDocument();
```

License
-------

[](#license)

JUnitScribe is licensed under the MIT License - see the `LICENSE` file for details.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

4394d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/635801?v=4)[Marc Neudert](/maintainers/mneudert)[@mneudert](https://github.com/mneudert)

---

Top Contributors

[![mneudert](https://avatars.githubusercontent.com/u/635801?v=4)](https://github.com/mneudert "mneudert (37 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mneudert-junit-scribe/health.svg)

```
[![Health](https://phpackages.com/badges/mneudert-junit-scribe/health.svg)](https://phpackages.com/packages/mneudert-junit-scribe)
```

PHPackages © 2026

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