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 2026Releases
latest 8-
v1.4.026 Jan 2026Release notes
Open source →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
relativePathHelperargument (#32)
Other Changes
Improved
.gitattributesexport-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
-
v1.3.029 Nov 2025Release notes
Open source →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 correctlyparameters: 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.013 Nov 2024Release notes
Open source →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.222 Sep 2024Release notes
Open source →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.121 Sep 2024Release notes
Open source →This release includes minor improvements to the formatting and readability of error outputs.
Improvements
- Enhanced output formatting for error messages, improving overall readability
-
v1.1.021 Sep 2024Release notes
Open source →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
-
v1.0.119 Jun 2023Nothing published for this version
-
v1.0.016 May 2023Nothing published for this version