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 2y 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 4d 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 64% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity28

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

1628d ago

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

0.1.5PHP ^7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/993a7364565a51558985231f8b39d132e1b4bd4ec8d33f41c9bfa9889bc056e6?d=identicon)[noximo](/maintainers/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

[ergebnis/phpstan-rules

Provides rules for phpstan/phpstan.

4428.9M187](/packages/ergebnis-phpstan-rules)[symfony/type-info

Extracts PHP types information.

19751.9M114](/packages/symfony-type-info)[php-stubs/wordpress-stubs

WordPress function and class declaration stubs for static analysis.

19013.0M263](/packages/php-stubs-wordpress-stubs)[ticketswap/phpstan-error-formatter

A minimalistic error formatter for PHPStan

87578.8k35](/packages/ticketswap-phpstan-error-formatter)[timeweb/phpstan-enum

Enum class reflection extension for PHPStan

443.2M21](/packages/timeweb-phpstan-enum)[php-stubs/woocommerce-stubs

WooCommerce function and class declaration stubs for static analysis.

942.9M66](/packages/php-stubs-woocommerce-stubs)

PHPackages © 2026

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