gboquizosanchez/phpstan-report

Laravel package to display PHPStan errors in a view

Maintainers

Package info

github.com/gboquizosanchez/phpstan-report

Language:Blade

pkg:composer/gboquizosanchez/phpstan-report

Statistics

Installs: 205

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.4 2025-09-25 09:15 UTC

This package is auto-updated.

Last update: 2026-04-06 23:42:29 UTC


README

PHPStan Report

gboquizosanchez/phpstan-report

A beautiful web interface for PHPStan results in Laravel

Latest Stable Version Total Downloads PHP Laravel License: MIT

Stop squinting at terminal output. Run PHPStan, browse results, fix errors β€” all from your browser.

Overview

PHPStan Report is a Laravel package that provides an elegant web interface for viewing, analyzing, and managing PHPStan static analysis results. Transform your code quality insights into an interactive, user-friendly dashboard.

Panel

✨ Features

  • 🎯 Dynamic Level Control β€” Adjust PHPStan analysis levels (1–10) from the UI
  • ⚑ Real-time Analysis β€” Run PHPStan directly from your browser
  • πŸ“Š Beautiful Reports β€” Errors grouped by file, expandable inline, with severity indicators
  • πŸŒ“ Dark / Light theme β€” Persisted per session
  • πŸ“‹ One-click copy β€” Copy error messages and suggested fixes instantly
  • πŸ“± Responsive β€” Optimized for mobile and desktop
  • πŸš€ Composer integration β€” Seamless integration with Composer scripts
  • πŸ’Ύ Auto-save β€” Remembers your preferred configuration

Requirements

  • PHP 8.3+
  • Laravel 11.0+ or 12.0+

Warning

This package is intended for development environments only. Do not install it in production.

πŸ“¦ Installation

composer require gboquizosanchez/phpstan-report

Run the installation command to automatically configure everything:

php artisan install:phpstan-report

This command will:

  1. Create phpstan.neon β€” Generates a base config at level 3 (if not already present)
  2. Publish assets β€” Copies assets to public/vendor/phpstan-report
  3. Update composer.json β€” Adds a phpstan-report Composer script
  4. Run initial analysis β€” Executes PHPStan and discovers your codebase

Generated phpstan.neon

parameters:
    level: 3
    paths:
        - app

You can customize this file to match your project's needs.

πŸš€ Usage

Navigate to the dashboard in your browser:

https://your-application.com/phpstan-report

Or verify the route is registered:

php artisan route:list --name=phpstan

You can also trigger analysis from the command line:

composer phpstan-report

Dashboard features

Analysis overview β€” Real-time stats showing total errors, warnings, and current analysis status.

Level management β€” Interactive slider to adjust PHPStan levels (1–10) with instant feedback and automatic re-analysis on change.

Error browser β€” File-based organization with expandable error lists, color-coded severity, and one-click copy for quick sharing.

Theme & preferences β€” Toggle between dark and light mode; settings persist across sessions.

Troubleshooting

  1. Check the logs β€” Laravel logs may contain helpful error messages.
  2. Verify requirements β€” Ensure PHP and Laravel versions meet the minimum requirements.
  3. Clear cache β€” Run php artisan config:clear and php artisan cache:clear.
  4. Open an issue β€” Report bugs or request features.

Contributing

Contributions are welcome!

  • πŸ› Report bugs via GitHub Issues
  • πŸ’‘ Suggest features or improvements
  • πŸ”§ Submit pull requests with fixes or enhancements
  • πŸ“– Improve documentation or add examples

Credits

πŸ“„ License

This package is open-source software licensed under the MIT License.

Made with ❀️ for the PHP community