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. grifart/phpstan-oneline

ActivePhpstan-extension

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

PHPStan compact error formatter

v0.5.0(1y ago)24503.9k↓13.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 1mo ago

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 95% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity45

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity70

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

531d 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://www.gravatar.com/avatar/939d12e9a77e30f843e33a785f81d8ee45b71bf2db88c0d32c0d36571c71a58d?d=identicon)[jkuchar](/maintainers/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.4k43.5M5.2k](/packages/larastan-larastan)[phpstan/phpstan-symfony

Symfony Framework extensions and rules for PHPStan

78768.9M1.5k](/packages/phpstan-phpstan-symfony)[phpstan/phpstan-doctrine

Doctrine extensions for PHPStan

66766.6M1.1k](/packages/phpstan-phpstan-doctrine)[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.

33320.0M375](/packages/spaze-phpstan-disallowed-calls)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

134391.5k12](/packages/rector-rector-src)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)

PHPackages © 2026

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