gboquizosanchez/phpstan-report 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gboquizosanchez/phpstan-report

最新稳定版本:1.0.4

Composer 安装命令:

composer require gboquizosanchez/phpstan-report

包简介

Laravel package to display PHPStan errors in a view

README 文档

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 issueReport 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

统计信息

  • 总下载量: 274
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固