PHPackages                             grifart/phpstan-oneline - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. grifart/phpstan-oneline

ActivePhpstan-extension[Testing &amp; Quality](/categories/testing)

grifart/phpstan-oneline
=======================

PHPStan compact error formatter

v0.5.0(1y ago)24508.1k↓68.6%5[1 issues](https://github.com/grifart/phpstan-oneline/issues)[1 PRs](https://github.com/grifart/phpstan-oneline/pulls)13MITPHPPHP ^8.2

Since Dec 5Pushed 1y ago3 watchersCompare

[ Source](https://github.com/grifart/phpstan-oneline)[ Packagist](https://packagist.org/packages/grifart/phpstan-oneline)[ RSS](/packages/grifart-phpstan-oneline/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (1)Versions (13)Used By (13)

PHPStan one-line error formatter
================================

[](#phpstan-one-line-error-formatter)

[![Latest Stable Version](https://camo.githubusercontent.com/dadc669ad99f4c199124839805813c46480f403ee9ee49cc351c2a045cf32aa7/68747470733a2f2f706f7365722e707567782e6f72672f677269666172742f7068707374616e2d6f6e656c696e652f762f737461626c65)](https://packagist.org/packages/grifart/phpstan-oneline)[![Total Downloads](https://camo.githubusercontent.com/eae441b5587cc0b8d9935919d7046492be1596e6b8040a30fa165bade44eaf5e/68747470733a2f2f706f7365722e707567782e6f72672f677269666172742f7068707374616e2d6f6e656c696e652f646f776e6c6f616473)](https://packagist.org/packages/grifart/phpstan-oneline)[![License](https://camo.githubusercontent.com/537c749a3745ae3f4551428258d3a6395b1d4bddb33a4d42fe51581c99cd8f16/68747470733a2f2f706f7365722e707567782e6f72672f677269666172742f7068707374616e2d6f6e656c696e652f6c6963656e7365)](https://packagist.org/packages/grifart/phpstan-oneline)[![Build Status](https://camo.githubusercontent.com/a78d148979e5750ef6185a2e6104de985542f47a8e84c3b710db139d8fd29e96/68747470733a2f2f7472617669732d63692e6f72672f677269666172742f7068707374616e2d6f6e656c696e652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/grifart/phpstan-oneline)

Compact and **clickable** [PhpStan](http://github.com/phpstan/phpstan) error output handler.

So when you run for example:

```
phpstan analyze -l max --configuration phpstan.neon --error-format oneline
```

[![](example.png)](example.png)

and now you will get to the location where error occurred by one-click!

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

[](#installation)

```
composer require --dev grifart/phpstan-oneline
```

and register error formatter into your `phpstan.neon`:

```
includes:
	- vendor/grifart/phpstan-oneline/config.neon
```

### Clickable paths in PhpStorm

[](#clickable-paths-in-phpstorm)

1. Install [Awesome Console](https://github.com/anthraxx/intellij-awesome-console) (available in PhpStorm repositories)
2. run phpstan in PhpStorm terminal

Custom error format
-------------------

[](#custom-error-format)

There has been added `compact` error format. It looks like this by default:

```
phpstan analyze -l max --configuration phpstan.neon --error-format compact
```

[![](example-compact.png)](example-compact.png)

You can customize `compact` error format in your `phpstan.neon`:

```
parameters:
	compact:
		format: "{path}:{line}\n ↳ {error}" # default
```

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~199 days

Recently: every ~442 days

Total

12

Last Release

577d ago

PHP version history (4 changes)v0.1.0PHP &gt;= 7.0.0

v0.3.0PHP ^7.1

v0.4.0PHP ^7.1 || ^8.0

v0.5.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/133822?v=4)[Jan Kuchař](/maintainers/jkuchar)[@jkuchar](https://github.com/jkuchar)

---

Top Contributors

[![jkuchar](https://avatars.githubusercontent.com/u/133822?v=4)](https://github.com/jkuchar "jkuchar (21 commits)")[![jiripudil](https://avatars.githubusercontent.com/u/1042159?v=4)](https://github.com/jiripudil "jiripudil (10 commits)")[![enumag](https://avatars.githubusercontent.com/u/539462?v=4)](https://github.com/enumag "enumag (7 commits)")[![juliangut](https://avatars.githubusercontent.com/u/1104131?v=4)](https://github.com/juliangut "juliangut (4 commits)")

### Embed Badge

![Health badge](/badges/grifart-phpstan-oneline/health.svg)

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

###  Alternatives

[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)[spaze/phpstan-disallowed-calls

PHPStan rules to detect disallowed method &amp; function calls, constant, namespace, attribute, property &amp; superglobal usages, with powerful rules to re-allow a call or a usage in places where it should be allowed.

33422.6M549](/packages/spaze-phpstan-disallowed-calls)[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)
