PHPackages                             ticketswap/phpstan-error-formatter - 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. ticketswap/phpstan-error-formatter

ActivePhpstan-extension[Utility &amp; Helpers](/categories/utility)

ticketswap/phpstan-error-formatter
==================================

A minimalistic error formatter for PHPStan

1.2.6(2mo ago)87578.8k—6%420MITPHPPHP ^7.4|^8.0CI passing

Since Aug 26Pushed 1mo ago5 watchersCompare

[ Source](https://github.com/TicketSwap/phpstan-error-formatter)[ Packagist](https://packagist.org/packages/ticketswap/phpstan-error-formatter)[ RSS](/packages/ticketswap-phpstan-error-formatter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (19)Used By (20)

 A minimalistic error formatter for PHPStan

 [![Screenshot](https://raw.githubusercontent.com/TicketSwap/phpstan-error-formatter/main/screenshot.png)](https://raw.githubusercontent.com/TicketSwap/phpstan-error-formatter/main/screenshot.png)

 [![Latest Stable Version](https://camo.githubusercontent.com/6dfdeaa9bdf16b30a094287d7a821f565a215defd34dad6aaedb8d5b9ff12edf/68747470733a2f2f706f7365722e707567782e6f72672f7469636b6574737761702f7068707374616e2d6572726f722d666f726d61747465722f763f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ticketswap/phpstan-error-formatter) [![PHP Version Require](https://camo.githubusercontent.com/0f5bcea000f10902c6c639fcb321089c01a76d1da021ef15413ad6861432c380/68747470733a2f2f706f7365722e707567782e6f72672f7469636b6574737761702f7068707374616e2d6572726f722d666f726d61747465722f726571756972652f7068703f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ticketswap/phpstan-error-formatter) [![Total Downloads](https://camo.githubusercontent.com/a868cf4a41205c4f4ab8bab16b4cdb091448122a55ec8a2fac33d33df797fee9/68747470733a2f2f706f7365722e707567782e6f72672f7469636b6574737761702f7068707374616e2d6572726f722d666f726d61747465722f646f776e6c6f6164733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ticketswap/phpstan-error-formatter) [![License](https://camo.githubusercontent.com/7aed4c90694170879b28e7b476d8dfbb767b1e6d1c33faa75ded7640a1cba413/68747470733a2f2f706f7365722e707567782e6f72672f7469636b6574737761702f7068707374616e2d6572726f722d666f726d61747465722f6c6963656e73653f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ticketswap/phpstan-error-formatter)

---

Features
--------

[](#features)

- Every error has it's own clickable file + line link (default formatter shows the file once, and then displays the line + errors)
- Errors don't wrap, so they take your while terminal (default formatter wraps in a table)
- Highlighting of variables, fully qualified class names and other common types. This is done naively and there are cases where it does not work.
- Long file paths are truncated visually (src/App/../Entity/User.php) while keeping the clickable link intact
- The filename + line is clickable depending on your terminal and their support for clickable links. For example, in PHPStorm's built-in editor, it doesn't work and there we print `file:///Volumes/CS/www/src/App/User.php`.

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

[](#installation)

To use this extension, require it in [Composer](https://getcomposer.org/):

```
composer require --dev ticketswap/phpstan-error-formatter
```

If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!

 Manual installationIf you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:

```
includes:
    - vendor/ticketswap/phpstan-error-formatter/extension.neon
```

Usage
-----

[](#usage)

Configure PHPStan to use the `ticketswap` error formatter:

```
parameters:
    errorFormat: ticketswap
```

When you haven't done so, make sure to configure the [editorUrl](https://phpstan.org/user-guide/output-format#opening-file-in-an-editor):

For example, on PhpStorm:

```
parameters:
    editorUrl: 'phpstorm://open?file=%%file%%&line=%%line%%'
```

On Visual Studio Code, you can change to:

```
parameters:
    editorUrl: 'vscode://file/%%file%%:%%line%%'
```

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance88

Actively maintained with recent releases

Popularity51

Moderate usage in the ecosystem

Community30

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.6% 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 ~32 days

Recently: every ~40 days

Total

18

Last Release

74d ago

PHP version history (4 changes)1.0.0PHP ^8.3

1.0.1PHP ^8.2

1.1.1PHP ^8.1

1.1.2PHP ^7.4|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/104180?v=4)[Ruud Kamphuis](/maintainers/ruudk)[@ruudk](https://github.com/ruudk)

---

Top Contributors

[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (44 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (7 commits)")[![simbig](https://avatars.githubusercontent.com/u/26680884?v=4)](https://github.com/simbig "simbig (2 commits)")[![FabienPapet](https://avatars.githubusercontent.com/u/1446265?v=4)](https://github.com/FabienPapet "FabienPapet (1 commits)")[![juliangut](https://avatars.githubusercontent.com/u/1104131?v=4)](https://github.com/juliangut "juliangut (1 commits)")[![Staormin](https://avatars.githubusercontent.com/u/5527217?v=4)](https://github.com/Staormin "Staormin (1 commits)")

---

Tags

PHPStandev

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ticketswap-phpstan-error-formatter/health.svg)

```
[![Health](https://phpackages.com/badges/ticketswap-phpstan-error-formatter/health.svg)](https://phpackages.com/packages/ticketswap-phpstan-error-formatter)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[phpstan/extension-installer

Composer plugin for automatic installation of PHPStan extensions

50398.1M8.3k](/packages/phpstan-extension-installer)[phing/phing

PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.

1.2k21.7M876](/packages/phing-phing)[ergebnis/phpstan-rules

Provides rules for phpstan/phpstan.

4428.9M187](/packages/ergebnis-phpstan-rules)[shipmonk/composer-dependency-analyser

Fast detection of composer dependency issues (dead dependencies, shadow dependencies, misplaced dependencies)

6156.7M435](/packages/shipmonk-composer-dependency-analyser)

PHPackages © 2026

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