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.3.0(3mo ago)87718.9k↓42.4%520MITPHPPHP ^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 yesterday

READMEChangelog (10)Dependencies (6)Versions (20)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

59

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity52

Moderate usage in the ecosystem

Community32

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75.9% 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 ~47 days

Total

19

Last Release

91d 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 (8 commits)")[![simbig](https://avatars.githubusercontent.com/u/26680884?v=4)](https://github.com/simbig "simbig (2 commits)")[![juliangut](https://avatars.githubusercontent.com/u/1104131?v=4)](https://github.com/juliangut "juliangut (1 commits)")[![FabienPapet](https://avatars.githubusercontent.com/u/1446265?v=4)](https://github.com/FabienPapet "FabienPapet (1 commits)")[![Staormin](https://avatars.githubusercontent.com/u/5527217?v=4)](https://github.com/Staormin "Staormin (1 commits)")[![zigzagdev](https://avatars.githubusercontent.com/u/47250974?v=4)](https://github.com/zigzagdev "zigzagdev (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

[rector/rector

Instant Upgrade and Automated Refactoring of any PHP code

10.4k139.2M9.2k](/packages/rector-rector)[deptrac/deptrac

Deptrac is a static code analysis tool that helps to enforce rules for dependencies between software layers.

3.0k8.8M118](/packages/deptrac-deptrac)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.4k](/packages/larastan-larastan)[phpstan/extension-installer

Composer plugin for automatic installation of PHPStan extensions

506109.3M11.4k](/packages/phpstan-extension-installer)[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.5M91](/packages/shipmonk-dead-code-detector)[ergebnis/phpstan-rules

Provides rules for phpstan/phpstan.

4579.8M286](/packages/ergebnis-phpstan-rules)

PHPackages © 2026

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