backendtea/phpstan-multiple-error-formatter 问题修复 & 功能扩展

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

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

backendtea/phpstan-multiple-error-formatter

最新稳定版本:1.0.0

Composer 安装命令:

composer require --dev backendtea/phpstan-multiple-error-formatter

包简介

A PHPStan extension to show multiple error formats in one go

README 文档

README

This project was born form a need to have multiple outputs from a PHPStan run. Its goal is to provide a way to direct outputs to multiple locations, without having to run PHPStan multiple times.

Installation

composer require --dev backendtea/phpstan-multiple-error-formatter

If you also install phpstan/extension-installer then you're all set!

Manual installation

If you don't want to use phpstan/extension-installer, include extension.neon in your project's PHPStan config:

includes: - vendor/backendtea/phpstan-multiple-error-formatter/config.neon 

Usage

This package provides the 'multiple' error formatter. Generally you want to use this in CI by adding the --error-format multiple flag.

The multiple error formatter wil look for the errorFormatters.formatters configuration option, where you can define the outputs you are looking for

This package defines the following formatters to output to a file:

  • jsonFile : prints a json file
  • prettyJsonFile: prints a pretty json file (with whitespaces for human readability)
  • gitlabFile: outputs a file for gitlab code quality inspections

You can configure the file location it should output to with the errorFormatters.jsonFile and errorFromatters.gitlabFile configuration options:

An example where we want to write a pretty json file, a gitlab file, and output to a table in stdOut would look like this:

parameters: errorFormatters: formatters: - table - gitlabFile - prettyJsonFile jsonFile: %currentWorkingDirectory%/phpstan.json gitlabFile: %currentWorkingDirectory%/phpstan-gitlab.json # other config...

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固