PHPackages                             noximo/phpstan-fileoutput - 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. noximo/phpstan-fileoutput

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

noximo/phpstan-fileoutput
=========================

An error formatter for PHPStan that exports analysis result into HTML file

0.1.9(4y ago)618.2k5[2 issues](https://github.com/noximo/PHPStan-FileOutput/issues)[1 PRs](https://github.com/noximo/PHPStan-FileOutput/pulls)2MITPHPPHP ^7.3

Since Nov 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/noximo/PHPStan-FileOutput)[ Packagist](https://packagist.org/packages/noximo/phpstan-fileoutput)[ RSS](/packages/noximo-phpstan-fileoutput/feed)WikiDiscussions master Synced 3w ago

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

PHPStan FileOutput
==================

[](#phpstan-fileoutput)

An error formatter for [PHPStan](https://github.com/phpstan/phpstan) that exports analysis result into HTML file

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

[](#installation)

```
composer require noximo/phpstan-fileoutput

```

Usage
-----

[](#usage)

Edit or create your phpstan.neon file and register new error formatter. First two parameters are mandatory.

- First specifies path to file in which data will be outputed.
- Second specifies which other formatter will be used with FileOutput formatter running silently in the background. You can set it to null if you wish to only work with FileOutput-generated files.

```
services:
	errorFormatter.fileoutput:  # Can be any name after errorFormatter
		class: noximo\FileOutput(./example/phpstan.html, null)

```

You can (and should) specify second parameter to use one of the other formatters as well, so console output will be unaffected:

```
class: noximo\FileOutput(./example/phpstan.html, @errorFormatter.raw)

```

At the time of writing of this readme these formatters were available by default in PHPStan:

- `errorFormatter.checkstyle`,
- `errorFormatter.json`,
- `errorFormatter.prettyJson`,
- `errorFormatter.raw`,
- `errorFormatter.table`

*Check [PHPStan repository](https://github.com/phpstan/phpstan) for possible updates.*

Third parameter sets custom output template.

```
class: noximo\FileOutput(./example/phpstan.html, null, ./tests/alternative_table.phtml)

```

See [table.phtml](/src/table.phtml) for implementation details and data structure.

Output
------

[](#output)

FileOutputer will generate HTML file (assuming default template) with hyperlinks directly into PHP files where errors were encountered. If you want to leverage clickable links, set up your enviromenent according to this article:

Note: When you fix an error, file structure and line numbers can no longer correspond to line number at the time of analysis. You'll need to re-run PHPStan to regenerate output file. Errors are outputed in descending order (line-number wise) so there's bigger chance that you won't lines out of their current positions.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity53

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

Recently: every ~197 days

Total

10

Last Release

1675d ago

PHP version history (2 changes)v0.1PHP ^7.1

0.1.5PHP ^7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1476387?v=4)[Tomas Pospisil](/maintainers/noximo)[@noximo](https://github.com/noximo)

---

Top Contributors

[![noximo](https://avatars.githubusercontent.com/u/1476387?v=4)](https://github.com/noximo "noximo (16 commits)")

---

Tags

PHPStanerror-formatterfile output

### Embed Badge

![Health badge](/badges/noximo-phpstan-fileoutput/health.svg)

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

###  Alternatives

[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136406.3k14](/packages/rector-rector-src)[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2603.2M419](/packages/ssch-typo3-rector)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

4853.5M90](/packages/shipmonk-dead-code-detector)[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87718.9k55](/packages/ticketswap-phpstan-error-formatter)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20280.7k20](/packages/shopsys-coding-standards)[johnbillion/wp-compat

PHPStan extension to help verify that your PHP code is compatible with a given version of WordPress

25166.1k18](/packages/johnbillion-wp-compat)

PHPackages © 2026

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