jwricky / phpstan-visualizer
A beautiful Xcode-style visualizer for PHPStan reports.
Package info
github.com/JWRicky/phpstan-visualizer
Language:Blade
pkg:composer/jwricky/phpstan-visualizer
Requires
- php: ^8.1
- illuminate/support: ^10.0|^11.0
README
A beautiful, Xcode-style visualizer for PHPStan reports in Laravel.
Developed by JWRicky.
Prerequisites
This package requires PHPStan (or Larastan) to be installed and configured in your Laravel project.
If you haven't installed it yet, please run:
composer require --dev larastan/larastan
Features
- Xcode-style UI: Clean and intuitive error reporting inspired by modern IDEs.
- Deep Linking: Open files directly in VSCode or other supported editors directly from your browser.
- Easy Integration: Specifically designed for seamless use within Laravel projects.
Appearance Customization
|
Black |
White |
Installation
You can install the package via Composer:
composer require jwricky/phpstan-visualizer:^1.0
Setup
After installation, complete the following steps to enable the visualizer:
1. Register Service Provider
If you are using Laravel 11+ or have auto-discovery disabled, add the provider to config/app.php (for Laravel 10) or bootstrap/providers.php (for Laravel 11):
JWRicky\PhpStanVisualizer\PhpStanVisualizerServiceProvider::class,
2. Publish Configuration
Publish the configuration file to customize the editor links or file paths:
php artisan vendor:publish --tag=phpstan-visualizer-config
3. Generate PHPStan Report
This package visualizes a report.json file. Ensure you generate it using the JSON format:
phpstan analyse --error-format=json > storage/app/phpstan/report.json
Tip: Add this to your `composer.json scripts for convenience:
"scripts": { "phpstan:json": "phpstan analyse --error-format=json > storage/app/phpstan/report.json || true" }
4. Access the Dashboard
Once the report is generated, visit the following URL in your browser:
http://your-app.test/phpstan
License
The MIT License (MIT). Please see the License File for more information.
Maintained by JWRicky.
You are free to use, copy, modify, and distribute this software for personal or commercial purposes.