PHPackages                             gboquizosanchez/phpstan-report - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. gboquizosanchez/phpstan-report

ActiveLibrary

gboquizosanchez/phpstan-report
==============================

Laravel package to display PHPStan errors in a view

1.0.4(7mo ago)0153MITBladePHP ^8.3

Since Aug 1Pushed 7mo agoCompare

[ Source](https://github.com/gboquizosanchez/phpstan-report)[ Packagist](https://packagist.org/packages/gboquizosanchez/phpstan-report)[ RSS](/packages/gboquizosanchez-phpstan-report/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (6)Used By (0)

PHPStan Report
==============

[](#phpstan-report)

[![Latest Version](https://camo.githubusercontent.com/8ab97ac7f5dad84c87cf834c5a9027923b14e6cb8c2909ef9284bcfc40b45379/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67626f7175697a6f73616e6368657a2f7068707374616e2d7265706f72742e737667)](https://packagist.org/packages/gboquizosanchez/phpstan-report)[![Software License](https://camo.githubusercontent.com/4141875b9db06b6e19ee4c8c4f14f34b47dabb4fcdad7816e338a79666b0aacb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d7265642e737667)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/4ab35ad9a83e333e836856b1bdeb704e6693f6e9712c753579b96e45da063949/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67626f7175697a6f73616e6368657a2f7068707374616e2d7265706f72742e737667)](https://packagist.org/packages/gboquizosanchez/phpstan-report)

Overview
--------

[](#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.

Features ✨
----------

[](#features-)

- **🎯 Dynamic Level Control** - Adjust PHPStan analysis levels (1-10) through an intuitive web interface
- **⚡ Real-time Analysis** - Execute PHPStan analysis directly from your browser
- **📊 Beautiful Reports** - View detailed analysis results with clear, organized presentation
- **🌓 Theme Support** - Switch between dark and light themes with session persistence
- **📋 Copy Functionality** - One-click copy for error messages and solutions
- **📱 Responsive Design** - Optimized experience across mobile and desktop devices
- **🚀 Composer Integration** - Seamless integration with Composer scripts
- **💾 Auto-save Settings** - Automatically remembers your preferred configuration

Requirements
------------

[](#requirements)

- **PHP**: 8.3+
- **Laravel**: 11.0+ or 12.0+
- **Composer**: Latest stable version

Installation
============

[](#installation)

Install the package via Composer:

```
composer require gboquizo/phpstan-report
```

Quick Setup
-----------

[](#quick-setup)

Run the installation command to automatically configure PHPStan Report:

```
php artisan install:phpstan-report
```

This command performs the following actions:

1. **Creates `phpstan.neon`** - Generates a configuration file with level 3 analysis (if not exists)
2. **Publishes assets** - Copies package assets to `public/vendor/phpstan-report`
3. **Updates `composer.json`** - Adds PHPStan script for easy execution
4. **Runs initial analysis** - Executes PHPStan analysis and asset discovery

### Generated Configuration

[](#generated-configuration)

The installation creates a basic `phpstan.neon` configuration:

```
parameters:
    level: 3
    paths:
        - app
```

You can customize this configuration according to your project needs.

Screenshots 💄
-------------

[](#screenshots-)

[![Panel](https://raw.githubusercontent.com/gboquizosanchez/phpstan-report/refs/heads/1.x/arts/panel.jpg)](https://raw.githubusercontent.com/gboquizosanchez/phpstan-report/refs/heads/1.x/arts/panel.jpg)

Usage
-----

[](#usage)

### Accessing the Web Interface

[](#accessing-the-web-interface)

Navigate to the PHPStan Report dashboard using any of these methods:

- **Direct URL**: `https://your-application.com/phpstan-report`
- **Artisan route list**: Use `php artisan route:list --name=phpstan` to verify the route

### Dashboard Features

[](#dashboard-features)

#### 📊 Analysis Dashboard

[](#-analysis-dashboard)

- **Real-time statistics** showing total errors, warnings, and analysis status
- **File-based organization** with expandable error lists
- **Severity indicators** with color-coded error types

#### ⚙️ Level Management

[](#️-level-management)

- **Interactive slider** to adjust PHPStan analysis levels (1-10)
- **Instant feedback** showing level descriptions and expected behavior
- **Automatic re-analysis** when level changes are applied

#### 🚀 Analysis Execution

[](#-analysis-execution)

- **One-click analysis** button for immediate code scanning
- **Progress indicators** showing analysis status
- **Success/error notifications** with detailed feedback

#### 🎨 User Experience

[](#-user-experience)

- **Theme toggle** between dark and light modes
- **Persistent preferences** saved across browser sessions
- **Mobile-optimized** interface for analysis on-the-go
- **Copy-to-clipboard** functionality for quick error sharing

### Command Line Usage

[](#command-line-usage)

You can also run PHPStan analysis through Composer:

```
# Run analysis (added by installation command)
composer phpstan-report
```

### Getting Help

[](#getting-help)

If you encounter issues:

1. **Check the logs** - Laravel logs may contain helpful error messages
2. **Verify requirements** - Ensure PHP and Laravel versions meet minimum requirements
3. **Clear cache** - Run `php artisan config:clear` and `php artisan cache:clear`
4. **Open an issue** - [Report bugs or request features](https://github.com/gboquizosanchez/phpstan-report/issues/new)

Contributing
------------

[](#contributing)

We welcome contributions! Please feel free to:

- 🐛 **Report bugs** through GitHub issues
- 💡 **Suggest features** or improvements
- 🔧 **Submit pull requests** with bug fixes or enhancements
- 📖 **Improve documentation** or add examples

Credits 🧑‍💻
-----------

[](#credits-‍)

- **Author**: [Germán Boquizo Sánchez](mailto:germanboquizosanchez@gmail.com)
- **Built with**: [PHPStan](https://phpstan.org/) - The powerful PHP static analysis tool
- **Framework**: [Laravel](https://laravel.com/) - The PHP framework
- **Contributors**: [View all contributors](../../contributors)

License
-------

[](#license)

This package is open-source software licensed under the [MIT License](LICENSE.md).

Dependencies
------------

[](#dependencies)

### PHP dependencies 📦

[](#php-dependencies-)

- Illuminate Console [![Latest Stable Version](https://camo.githubusercontent.com/3d2bcd88de1055ff84f8f1850549b9e1ec438e7c2f724601283ebec1900b6ce7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d7631322e32312e302d626c7565)](https://packagist.org/packages/illuminate/console)
- Illuminate Http [![Latest Stable Version](https://camo.githubusercontent.com/3d2bcd88de1055ff84f8f1850549b9e1ec438e7c2f724601283ebec1900b6ce7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d7631322e32312e302d626c7565)](https://packagist.org/packages/illuminate/http)
- Illuminate Support [![Latest Stable Version](https://camo.githubusercontent.com/3d2bcd88de1055ff84f8f1850549b9e1ec438e7c2f724601283ebec1900b6ce7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d7631322e32312e302d626c7565)](https://packagist.org/packages/illuminate/support)
- Illuminate View [![Latest Stable Version](https://camo.githubusercontent.com/3d2bcd88de1055ff84f8f1850549b9e1ec438e7c2f724601283ebec1900b6ce7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d7631322e32312e302d626c7565)](https://packagist.org/packages/illuminate/view)
- Phpstan Phpstan [![Latest Stable Version](https://camo.githubusercontent.com/bcb9c01661e4bb19d1707fc7e68d2a058150ca20f60152e7cbcd19d2d9b76cea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d322e312e32312d626c7565)](https://packagist.org/packages/phpstan/phpstan)

#### Develop dependencies 🔧

[](#develop-dependencies-)

- Hermes Dependencies [![Latest Stable Version](https://camo.githubusercontent.com/a27bb88c89f9c450da561b4073e694a280af914046264e7a83dff5dab8142af9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d312e322e302d626c7565)](https://packagist.org/packages/hermes/dependencies)
- Laravel Pint [![Latest Stable Version](https://camo.githubusercontent.com/3b2cd87b632d7ee751099ecfbba370348b93bc05fab22c32ce6b1ccc6195a0a3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d76312e32342e302d626c7565)](https://packagist.org/packages/laravel/pint)

#### Develop dependencies 🔧

[](#develop-dependencies--1)

- Alpinejs [![Latest Stable Version](https://camo.githubusercontent.com/9a02b243584d4c8556c223909038787e497bc1579ef3489a25ef900a9cab49b5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d332e31342e392d626c7565)](https://www.npmjs.com/package/alpinejs)
- Autoprefixer [![Latest Stable Version](https://camo.githubusercontent.com/a7a8144a440b0fa50ab33a9d9d37741ba4daa1426562ef28b1605983bb7a8d8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d31302e342e32302d626c7565)](https://www.npmjs.com/package/autoprefixer)
- Postcss [![Latest Stable Version](https://camo.githubusercontent.com/3db8be5e072a68718bb2b46ab1abb63cbfd7478bfd266f90588cdb436a3e2f3e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d382e342e34392d626c7565)](https://www.npmjs.com/package/postcss)
- Tailwindcss [![Latest Stable Version](https://camo.githubusercontent.com/d046b3ed463d25bfe885ffafee5ff01a1f8d6783f7b544c9d2f9383bfe1e561f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d332e342e31362d626c7565)](https://www.npmjs.com/package/tailwindcss)
- Vite [![Latest Stable Version](https://camo.githubusercontent.com/ff92b8ae2ea290618857432598cb731fb1a3cb1e38ef78d565002237462a9888/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d372e302d626c7565)](https://www.npmjs.com/package/vite)

**Made with ❤️ for the PHP community**

###  Health Score

38

—

LowBetter than 84% of packages

Maintenance67

Regular maintenance activity

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

6

Last Release

226d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e360fba0cbca71392811fad1046d47397298adf9a191090e62eeeeab864e21d?d=identicon)[gboquizosanchez](/maintainers/gboquizosanchez)

---

Top Contributors

[![gboquizosanchez](https://avatars.githubusercontent.com/u/20032391?v=4)](https://github.com/gboquizosanchez "gboquizosanchez (9 commits)")

---

Tags

interfacephpstanreports

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/gboquizosanchez-phpstan-report/health.svg)

```
[![Health](https://phpackages.com/badges/gboquizosanchez-phpstan-report/health.svg)](https://phpackages.com/packages/gboquizosanchez-phpstan-report)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.1k](/packages/larastan-larastan)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M106](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[torchlight/torchlight-laravel

A Laravel Client for Torchlight, the syntax highlighting API.

120452.8k11](/packages/torchlight-torchlight-laravel)[spatie/laravel-export

Create a static site bundle from a Laravel app

646127.9k5](/packages/spatie-laravel-export)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
