felconca/phpstan-ui 问题修复 & 功能扩展

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

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

felconca/phpstan-ui

最新稳定版本:v1.01

Composer 安装命令:

composer require felconca/phpstan-ui

包简介

A local browser UI for PHPStan analysis results — no PHPStan Pro needed.

README 文档

README

A local browser UI for PHPStan analysis results. No PHPStan Pro needed.

Installation

composer require --dev felconca/phpstan-ui

Or for local development, add to your project's composer.json:

{
  "repositories": [
    {
      "type": "path",
      "url": "../phpstan-ui"
    }
  ],
  "require-dev": {
    "felconca/phpstan-ui": "*"
  }
}

Usage

Run PHPStan with the ui error formatter:

vendor/bin/phpstan analyse src/ --error-format=ui
vendor/bin/phpstan analyse src/ --error-format=ui --level=5
vendor/bin/phpstan analyse src/MyFile.php --error-format=ui

PHPStan runs as normal, then a local PHP server starts at http://localhost:8742 and your browser opens automatically.

Press Ctrl+C in the terminal to stop the server when you're done.

Features

  • File tree sidebar with error counts
  • Search across files and error messages
  • Filter: All / Errors only / Ignorable only
  • Sort: by error count or filename
  • Expandable file blocks with line numbers
  • Identifier tags, tip blocks, ignorable badges
  • Zero-dependency — uses PHP built-in server
  • Works on Windows, macOS, and Linux

Custom Port

To change the default port (8742), override the service in your phpstan.neon:

services:
    -
        class: PhpstanUi\UiErrorFormatter
        arguments:
            port: 9000
            host: localhost
        tags:
            - phpstan.errorFormatter

Requirements

  • PHP >= 5.6
  • PHPStan ^1.0
  • Composer

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固