jwricky/phpstan-visualizer
最新稳定版本:v1.0.0
Composer 安装命令:
composer require jwricky/phpstan-visualizer
包简介
A beautiful Xcode-style visualizer for PHPStan reports.
README 文档
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.
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-02-07