Download the PHP package yamadashy/phpstan-friendly-formatter without Composer
On this page you can find all versions of the php package yamadashy/phpstan-friendly-formatter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yamadashy/phpstan-friendly-formatter
More information about yamadashy/phpstan-friendly-formatter
Files in yamadashy/phpstan-friendly-formatter
Package phpstan-friendly-formatter
Short Description Simple error formatter for PHPStan that display code frame
License MIT
Informations about the package phpstan-friendly-formatter
🤝 PHPStan Friendly Formatter
Enhance your PHPStan experience with a formatter that brings your code to life! 🚀
🌟 Features
- Display Code Frame: See the problematic code right where the error occurs
- Error Identifier Summary: Get a quick overview of error types and their frequencies
- Beautiful Output: Enjoy a visually appealing and easy-to-read error report
🎯 Motivation
Ever felt lost in a sea of file paths and line numbers? We've been there! That's why we created this formatter to:
- Instantly pinpoint what's wrong in your code
- Reduce mental overhead when interpreting error messages
- Accelerate your debugging process
🚀 Getting Started
-
You may use Composer to install this package as a development dependency.
-
Register error formatter into your
phpstan.neon
orphpstan.neon.dist
: - Finally, set the
errorFormat
parameter:
Optional: Simplify Your Workflow
If you want to make it simpler, setting scripts
in composer.json
as follows:
You can run a short command like this:
⚙️ Configuration Options
You can customize in your phpstan.neon
:
lineBefore
... Number of lines to display before error linelineAfter
... Number of lines to display after error lineeditorUrl
... URL with placeholders like [table formatter config](URL for editor like table formatter)
🖼️ Example
When you actually introduce it in GitHub Actions, it will be displayed as follows.
https://github.com/yamadashy/laravel-blade-minify-directive/actions/runs/4714024802/jobs/8360104870
📜 License
Distributed under the MIT license.
All versions of phpstan-friendly-formatter with dependencies
php-parallel-lint/php-console-highlighter Version ^0.3 || ^0.4 || ^0.5 || ^1.0
phpstan/phpstan Version ^0.12 || ^1.0 || ^2.0