PHPackages                             mheap/phpunit-github-actions-printer - 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. mheap/phpunit-github-actions-printer

ActiveLibrary

mheap/phpunit-github-actions-printer
====================================

PHPUnit Printer for adding test failures as annotations on GitHub Actions

v1.5.1(5y ago)762.2M—8.2%7[1 issues](https://github.com/mheap/phpunit-github-actions-printer/issues)12MITPHP

Since Jan 18Pushed 4y ago2 watchersCompare

[ Source](https://github.com/mheap/phpunit-github-actions-printer)[ Packagist](https://packagist.org/packages/mheap/phpunit-github-actions-printer)[ RSS](/packages/mheap-phpunit-github-actions-printer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (12)

phpunit-github-actions-printer
------------------------------

[](#phpunit-github-actions-printer)

> There's a zero-config way to achieve this at [mheap/phpunit-matcher-action](https://github.com/mheap/phpunit-matcher-action)

This is a PHPUnit printer that uses the `::error` and `::warning` functionality of GitHub Actions to add annotiations for failing test runs. It's main differentiator to the above is that it supports adding warnings in addition to errors.

[![PHPUnit Action Matcher Logs Example](https://github.com/mheap/phpunit-github-actions-printer/raw/master/phpunit-printer-logs.png?raw=true)](https://github.com/mheap/phpunit-github-actions-printer/blob/master/phpunit-printer-logs.png?raw=true)

[![PHPUnit Action Matcher Context Example](https://github.com/mheap/phpunit-github-actions-printer/raw/master/phpunit-printer-context.png?raw=true)](https://github.com/mheap/phpunit-github-actions-printer/blob/master/phpunit-printer-context.png?raw=true)

> If you're interested in learning more about GitHub Actions, [sign up here](https://michaelheap.com/building-github-actions/)

Usage
-----

[](#usage)

Add this printer to your project

```
composer require --dev mheap/phpunit-github-actions-printer
```

When you run your tests, specify `mheap\GithubActionsReporter\Printer` as the printer to use

```
./vendor/bin/phpunit --printer mheap\\GithubActionsReporter\\Printer /path/to/tests
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity54

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 77.3% 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 ~59 days

Recently: every ~82 days

Total

7

Last Release

1955d ago

### Community

Maintainers

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

---

Top Contributors

[![mheap](https://avatars.githubusercontent.com/u/59130?v=4)](https://github.com/mheap "mheap (17 commits)")[![BrianHenryIE](https://avatars.githubusercontent.com/u/4720401?v=4)](https://github.com/BrianHenryIE "BrianHenryIE (2 commits)")[![MohammedAlkutrani](https://avatars.githubusercontent.com/u/24508555?v=4)](https://github.com/MohammedAlkutrani "MohammedAlkutrani (1 commits)")[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (1 commits)")[![YAhiru](https://avatars.githubusercontent.com/u/22848064?v=4)](https://github.com/YAhiru "YAhiru (1 commits)")

---

Tags

github-actionsphpunit-printer

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mheap-phpunit-github-actions-printer/health.svg)

```
[![Health](https://phpackages.com/badges/mheap-phpunit-github-actions-printer/health.svg)](https://phpackages.com/packages/mheap-phpunit-github-actions-printer)
```

PHPackages © 2026

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