Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Phpstan Friendly Formatter Laravel Package

yamadashy/phpstan-friendly-formatter

PHPStan Friendly Formatter enhances PHPStan output with code frames around errors, a summary of error identifiers and counts, and clean, readable reports. Install via Composer, include the extension in phpstan.neon, and set errorFormat to friendly.

View on GitHub
Deep Wiki
Context7
v1.4.0

This release adds CI-detected error formatting and improved summary output!

What's New 🚀

Improved Summary Output (#39)

The error summary has been redesigned with:

  • Error breakdown tree showing error counts by identifier
  • Polished styling and improved wording
  • More detailed statistics

Thanks to @MatuzMark for this contribution! 🎉

CI-Detected Error Formatter (#40)

When running in GitHub Actions or TeamCity, the friendly formatter now automatically outputs CI-specific error annotations alongside the friendly output!

  • GitHub Actions: Errors appear as annotations in the PR diff view
  • TeamCity: Errors are formatted for TeamCity's build log

This happens automatically when CI is detected - no configuration needed.

Thanks to @marcreichel for this contribution! 🎉

Bug Fixes 🐛

  • Fixed DI injection error with explicit relativePathHelper argument (#32)

Other Changes

Improved .gitattributes export-ignore entries (#42)

Reduced the Composer package size by excluding unnecessary files (.devcontainer/, docs/, playground/, phpunit.xml, etc.) from the distribution archive.

Thanks @sasezaki for this contribution! 🎉

How to Update

composer update yamadashy/phpstan-friendly-formatter

As always, if you have any issues or suggestions, please let us know on GitHub issues!

Full Changelog: https://github.com/yamadashy/phpstan-friendly-formatter/compare/v1.3.0...v1.4.0

v1.3.0

This release adds PHP 8.4/8.5 support and introduces the %%relFile%% placeholder for editor URLs!

What's New 🚀

New %%relFile%% Placeholder for Editor URLs (#19)

Added %%relFile%% placeholder support, making editor URLs work correctly in Docker/container environments!

Before: Clicking the link opened an incorrect path because PHPStan ran in a container After: Using %%relFile%% displays the relative file path, which works correctly

parameters:
    friendly:
        # For Docker environments - use relative path
        editorUrl: 'phpstorm://open?file=%%relFile%%&line=%%line%%'

Thanks to @jdreesen for this contribution! 🎉

PHP 8.4 & 8.5 Support (#16, #28)

  • Added PHP 8.4 support
  • Added PHP 8.5 support to CI test matrix

Breaking Changes ⚠️

PHP 8.1+ Required (#28)

  • Dropped support for PHP 7.4 and 8.0 (both are EOL)
  • Minimum required PHP version is now 8.1

How to Update

composer update yamadashy/phpstan-friendly-formatter

As always, if you have any issues or suggestions, please let us know on GitHub issues!

v1.2.0

This release adds support for PHPStan 2.0 and includes several improvements to our internal processes.

Breaking Changes

PHPStan 2.0 Compatibility (#15)

  • Added support for PHPStan 2.0
  • Maintained backward compatibility where possible

Updated PHP Version Requirements

  • Dropped support for PHP versions below 7.4, aligning with PHPStan's requirements

Internal Changes

Code Structure Improvements (#11)

  • Refactored FriendlyErrorFormatter for better maintainability
  • Improved error format parameter handling
  • Enhanced overall code organization

CI Improvements

  • Split CI workflow into separate jobs for better efficiency (#8)
  • Updated test matrix to include latest PHP versions (#7)
  • Enhanced dependency management (#12)

We value your feedback and contributions in making phpstan-friendly-formatter better! If you encounter any issues or have suggestions, please share them through our GitHub issues.

v1.1.2

Improvements

  • Added FallbackHighlighter for improved reliability when PhpConsoleHighlighter is unavailable

Notes

  • While we still support PHP 7.2 in this release, we are considering increasing the minimum PHP version requirement in future releases.
v1.1.1

This release includes minor improvements to the formatting and readability of error outputs.

Improvements

  • Enhanced output formatting for error messages, improving overall readability

image

v1.1.0

This release introduces a new Error Identifier Summary feature and several improvements to the formatting and readability of error outputs.

What's New

Error Identifier Summary (#3)

  • Added a new method for summarizing error identifiers in the error reporting
  • Error messages now display identifiers, making it easier to categorize and understand issues

Improved Formatting

  • Enhanced output formatting for error messages, improving overall readability
  • Errors are now grouped by file, providing a clearer overview of issues in your codebase

image

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4