Download the PHP package igeek/rector-html-output without Composer
On this page you can find all versions of the php package igeek/rector-html-output. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package rector-html-output
Rector HTML Output
Beautiful, self-contained HTML output formatter for Rector PHP.
Features
- Beautiful HTML Reports - Modern, responsive design with dark/light mode
- Zero External Dependencies - No CDN CSS/JS libraries required
- Easy Setup - Simple helper function for
rector.php - Auto-increment - Never overwrite existing reports
- Statistics - Lines added/removed, files changed
- Dark Mode - Automatic theme with localStorage persistence
- Searchable - Filter files by name in sidebar
- Collapsible - Expand/collapse individual file diffs
Installation
Usage
IMPORTANT: This package requires the callback-style rector.php because the fluent RectorConfigBuilder::registerService() only accepts class names, not factory closures needed for custom configuration.
Basic Configuration
Add to your rector.php:
Run Rector with HTML Output
Advanced Configuration
Manual Registration (Advanced)
For users who need full control:
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
outputDirectory |
string | required | Directory where reports will be saved (auto-created) |
filename |
string | 'rector-report' |
Base filename (without extension) |
autoIncrement |
bool | true |
Auto-increment filename if exists |
skipEmpty |
bool | true |
Skip report generation if no changes |
Output Example
Reports include:
- Summary statistics (files changed, lines added/removed)
- Searchable file list sidebar
- Syntax-highlighted diffs with line numbers
- Dark/light mode toggle (persisted via localStorage)
- Collapsible file sections
- Collapse/expand all button
Requirements
- PHP 8.3 or higher
- Rector ^2.0
License
MIT License - see LICENSE file
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Screenshots
Default UI
Search by file name
Collapse/Expand one or more file diff blocks
All versions of rector-html-output with dependencies
PHP Build Version
Package Version
The package igeek/rector-html-output contains the following files
Loading the files please wait ...