PackageTrack
Sign in Get early access

yamadashy/phpstan-friendly-formatter

Simple error formatter for PHPStan that display code frame

v1.4.0 1.2M downloads/mo #1641 most downloaded on Packagist yamadashy/phpstan-friendly-formatter

What this package is like to depend on

Last release 6 months ago

26 Jan 2026

Release timing varies

gaps range from 5 weeks to 1.3 years

Most releases are documented

notes for 6 of 8 stable releases

Nothing withdrawn

no release was ever pulled

3 years old

8 releases · first in 2023

2 releases in the last 12 months

see the full history below

Release timeline

8 releases · May 2023 to Jan 2026
2024 2025 2026
Release Pre-release

Releases

latest 8
  1. v1.4.0 26 Jan 2026
    Release notes

    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: v1.3.0...v1.4.0

    Open source →
  2. v1.3.0 29 Nov 2025
    Release notes

    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!

    Open source →
  3. v1.2.0 13 Nov 2024
    Release notes

    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.

    Open source →
  4. v1.1.2 22 Sep 2024
    Release notes

    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.
    Open source →
  5. v1.1.1 21 Sep 2024
    Release notes

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

    Improvements

    • Enhanced output formatting for error messages, improving overall readability

    Open source →
  6. v1.1.0 21 Sep 2024
    Release notes

    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

    Open source →
  7. v1.0.1 19 Jun 2023

    Nothing published for this version

  8. v1.0.0 16 May 2023

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive