Home

Awesome

<p align="center"> A minimalistic error formatter for PHPStan </p> <p align="center"> <img src="https://raw.githubusercontent.com/TicketSwap/phpstan-error-formatter/main/screenshot.png" alt="Screenshot" height="300"> </p> <p align="center"> <a href="https://packagist.org/packages/ticketswap/phpstan-error-formatter"><img src="https://poser.pugx.org/ticketswap/phpstan-error-formatter/v?style=for-the-badge" alt="Latest Stable Version"></a> <a href="https://packagist.org/packages/ticketswap/phpstan-error-formatter"><img src="https://poser.pugx.org/ticketswap/phpstan-error-formatter/require/php?style=for-the-badge" alt="PHP Version Require"></a> <a href="https://packagist.org/packages/ticketswap/phpstan-error-formatter"><img src="https://poser.pugx.org/ticketswap/phpstan-error-formatter/downloads?style=for-the-badge" alt="Total Downloads"></a> <a href="https://packagist.org/packages/ticketswap/phpstan-error-formatter"><img src="https://poser.pugx.org/ticketswap/phpstan-error-formatter/license?style=for-the-badge" alt="License"></a> </p>

Features

Installation

To use this extension, require it in Composer:

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

If you also install phpstan/extension-installer then you're all set!

<details> <summary>Manual installation</summary>

If 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
</details>

Usage

Configure PHPStan to use the ticketswap error formatter:

parameters:
    errorFormat: ticketswap

When you haven't done so, make sure to configure the editorUrl:

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