PHPackages                             nicksdot/phpstan-phpstorm-error-identifiers - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. nicksdot/phpstan-phpstorm-error-identifiers

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

nicksdot/phpstan-phpstorm-error-identifiers
===========================================

Custom PHPStan formatter to show error identifiers in PhpStorm inspection output.

0.3.1(5mo ago)6180.8k↓90.6%111MITPHPPHP &gt;=8.1

Since Oct 7Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/NickSdot/phpstan-phpstorm-error-identifiers)[ Packagist](https://packagist.org/packages/nicksdot/phpstan-phpstorm-error-identifiers)[ RSS](/packages/nicksdot-phpstan-phpstorm-error-identifiers/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (5)Dependencies (4)Versions (6)Used By (11)

Custom PHPStan Error Formatters
===============================

[](#custom-phpstan-error-formatters)

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

[](#installation)

1. Run `composer require --dev nicksdot/phpstan-phpstorm-error-identifiers`
2. Then add the formatter(s) you want to the `services` section in your `phpstan.neon`

PHPStan error identifiers in PhpStorm inspection output
-------------------------------------------------------

[](#phpstan-error-identifiers-in-phpstorm-inspection-output)

### Usage

[](#usage)

1. Add the service to `phpstan.neon`:

```
services:
	errorFormatter.checkstyle:
		class:  NickSdot\PhpStanPhpStormErrorIdentifiers\CheckstyleErrorFormatterPhpStorm
```

That's it, PHPStorm will automatically use it. And here is how it looks like:

[![PHPStan error identifiers in PhpStorm inspection output](.github/img/example.png)](.github/img/example.png)

LLM Error Formatter
-------------------

[](#llm-error-formatter)

The output of the PHPStan LLM error formatter is optimised for LLMs, resulting in **40–60% less token usage** compared to the default `RawErrorFormatter` output.

Real-life Example (210 errors):

FormatterTokenCharactersTableErrorFormatter11,693132,882RawErrorFormatter9,26535,794LlmErrorFormatter4,31618,245### Usage

[](#usage-1)

1. Add the service to `phpstan.neon`:

```
services:
	errorFormatter.llm:
		class: NickSdot\PhpStanPhpStormErrorIdentifiers\LlmErrorFormatter
```

2. Run PHPStan with the `--error-format=llm` flag.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance72

Regular maintenance activity

Popularity36

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 91.7% 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 ~28 days

Total

5

Last Release

156d ago

PHP version history (2 changes)0.1.0PHP &gt;=8.3

0.2.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/3162c42d78f1ecd8d4d97f372566c6ad7728306b9743a5861c61650f24c8b3fc?d=identicon)[NickSdot](/maintainers/NickSdot)

---

Top Contributors

[![NickSdot](https://avatars.githubusercontent.com/u/32384907?v=4)](https://github.com/NickSdot "NickSdot (11 commits)")[![clxmstaab](https://avatars.githubusercontent.com/u/47448731?v=4)](https://github.com/clxmstaab "clxmstaab (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nicksdot-phpstan-phpstorm-error-identifiers/health.svg)

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

###  Alternatives

[rector/rector

Instant Upgrade and Automated Refactoring of any PHP code

10.4k139.2M9.2k](/packages/rector-rector)[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/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

79475.7M2.2k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

67272.8M1.4k](/packages/phpstan-phpstan-doctrine)[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)[tomasvotruba/cognitive-complexity

PHPStan rules to measure cognitive complexity of your classes and methods

1635.6M289](/packages/tomasvotruba-cognitive-complexity)

PHPackages © 2026

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