https://github.com/roave/psalm-html-output
Psalm HTML output format
https://github.com/roave/psalm-html-output
Last synced: about 1 year ago
JSON representation
Psalm HTML output format
- Host: GitHub
- URL: https://github.com/roave/psalm-html-output
- Owner: Roave
- Created: 2019-07-15T15:14:13.000Z (almost 7 years ago)
- Default Branch: 1.2.x
- Last Pushed: 2024-04-26T00:40:02.000Z (about 2 years ago)
- Last Synced: 2025-05-01T20:54:56.590Z (about 1 year ago)
- Language: XSLT
- Size: 43.9 KB
- Stars: 23
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Psalm HTML Output
Takes the XML output from [Psalm](https://psalm.dev/) and renders it as HTML.

## Installation
First, install `xsltproc` on your machine (for example, `apt install xsltproc`).
Then `composer require --dev roave/psalm-html-output`
## Usage
```bash
vendor/bin/psalm --output-format=xml | xsltproc vendor/roave/psalm-html-output/psalm-html-output.xsl - > psalm-report.html
```
## Run with Docker
To avoid having to install `xsltproc` if you already have Docker, first build the image with:
```bash
docker build . -t psalm-html-output:latest
```
Then to generate the HTML:
```bash
vendor/bin/psalm --output-format=xml | docker run --rm -i psalm-html-output:latest > psalm-report.html
```