PHPackages                             rquadling/phpstan-junit - 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. rquadling/phpstan-junit

ActivePhpstan-extension

rquadling/phpstan-junit
=======================

PHPStan JUnit error reporter

v0.4.4(4y ago)039.2k↓50%MITPHPPHP ~7.0.0

Since Mar 16Pushed 4y agoCompare

[ Source](https://github.com/rquadling/phpstan-junit)[ Packagist](https://packagist.org/packages/rquadling/phpstan-junit)[ RSS](/packages/rquadling-phpstan-junit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (3)Versions (12)Used By (0)

PHPStan JUnit error reporter
============================

[](#phpstan-junit-error-reporter)

[![Build Status](https://camo.githubusercontent.com/8d2d5edbbcddd85bc10c65c7d8661d302d3a8db1bfb68b6ec772033467977bcd/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72717561646c696e672f7068707374616e2d6a756e69742e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d747261766973)](https://travis-ci.org/rquadling/phpstan-junit)[![Code Coverage](https://camo.githubusercontent.com/8e839d9f83f333859f16e50684c5694553549ff678de036438cf6af6dce9247b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f72717561646c696e672f7068707374616e2d6a756e69742e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d7363727574696e697a6572)](https://scrutinizer-ci.com/g/rquadling/phpstan-junit/)[![GitHub issues](https://camo.githubusercontent.com/204fa8cca0b53f77e92b5bde9eed3d0c165509dca537b698e9f68fa477c3e2ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f72717561646c696e672f7068707374616e2d6a756e69742e7376673f7374796c653d666f722d7468652d6261646765266c6f676f3d676974687562)](https://github.com/rquadling/phpstan-junit/issues)

[![PHP Version](https://camo.githubusercontent.com/3ff981c88efaef673637fab363fe74f8a741d93bbb9fabbf3e69eb8012b08d1b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72717561646c696e672f7068707374616e2d6a756e69742e7376673f7374796c653d666f722d7468652d6261646765)](https://github.com/rquadling/phpstan-junit)[![Stable Version](https://camo.githubusercontent.com/0b21b826f5430436d59c92111aeb12b082d449aca1d10f010e27d9a47361bea7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72717561646c696e672f7068707374616e2d6a756e69742e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4c6174657374)](https://packagist.org/packages/rquadling/phpstan-junit)

[![Total Downloads](https://camo.githubusercontent.com/b30fef759c9361b30c900834d6b517abe8d35eb58cf2c41e87262469c358f918/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72717561646c696e672f7068707374616e2d6a756e69742e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d546f74616c2b646f776e6c6f616473)](https://packagist.org/packages/rquadling/phpstan-junit)[![Monthly Downloads](https://camo.githubusercontent.com/f9ac7882da7fde3ad0f8f27caf85731366e0312fe808440e2954ce79873f8580/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f72717561646c696e672f7068707374616e2d6a756e69742e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4d6f6e74686c792b646f776e6c6f616473)](https://packagist.org/packages/rquadling/phpstan-junit)[![Daily Downloads](https://camo.githubusercontent.com/5c5ed2d98bc159c1d9fe3f59b7aba45540c4d06c18358d6229d96e481318bee6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64642f72717561646c696e672f7068707374616e2d6a756e69742e7376673f7374796c653d666f722d7468652d6261646765266c6162656c3d4461696c792b646f776e6c6f616473)](https://packagist.org/packages/rquadling/phpstan-junit)

DISCLAIMER
----------

[](#disclaimer)

The code in this library is heavily (and I mean VERY VERY heavily) based upon the work in [mavimo/phpstan-junit](https://github.com/mavimo/phpstan-junit). I cannot stress strongly enough how much the work there is here. It is pretty much a direct rip off!

The main purpose of this fork is to allow the JUnit error reporter to operate on PHP 7.0 with the [phpstan/phpstan-shim:0.9.2](https://github.com/phpstan/phpstan-shim), as that is my current use case.

Scope
-----

[](#scope)

The main scope for this project is to create error report in **JUnit** format that can be easily integrated in *Jenkins*or other tools that use this information.

How to use it
-------------

[](#how-to-use-it)

### Install

[](#install)

You need to include this library in your project as dev-dependency.

```
composer require --dev rquadling/phpstan-junit
```

You will need to add the appropriate service entry to your `phpstan.neon` file in the root of your project:

```
services:
    errorFormatter.junit:
        class: RQuadling\PHPStan\ErrorFormatter\JunitErrorFormatter
```

### Generate JUnit report

[](#generate-junit-report)

You can generate JUnit reports using `--errorFormat junit`, eg:

```
vendor/bin/phpstan --configuration phpstan.neon --errorFormat junit --level max --no-progress --no-interaction analyse SOURCE_CODE_DIR
```

Contributing
------------

[](#contributing)

Contributions are welcome, but this particular fork will not be needed for anything other than PHP 7.0 with PHPStan-shim v0.9.2. If you do have any contributions, then I'll certainly look at them. But if it is for any version different to the ones mentioned, then it is probably best you look at Mavimo's version.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.5% 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 ~97 days

Recently: every ~188 days

Total

11

Last Release

1649d ago

PHP version history (3 changes)0.1.0PHP ~7.1

0.3.0PHP ~7.0

0.4.0PHP ~7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c385f24d4f13c86b9c3e54c61b2532189c1ffb3099a8e63738fd75de90b20ba?d=identicon)[RQuadling](/maintainers/RQuadling)

---

Top Contributors

[![mavimo](https://avatars.githubusercontent.com/u/43941?v=4)](https://github.com/mavimo "mavimo (50 commits)")[![rquadling](https://avatars.githubusercontent.com/u/12801?v=4)](https://github.com/rquadling "rquadling (26 commits)")[![mrjoops](https://avatars.githubusercontent.com/u/7291430?v=4)](https://github.com/mrjoops "mrjoops (9 commits)")[![henrikarrenbeld](https://avatars.githubusercontent.com/u/39762938?v=4)](https://github.com/henrikarrenbeld "henrikarrenbeld (1 commits)")[![mr-feek](https://avatars.githubusercontent.com/u/5747667?v=4)](https://github.com/mr-feek "mr-feek (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/rquadling-phpstan-junit/health.svg)

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

PHPackages © 2026

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