PHPackages                             igeek/rector-html-output - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. igeek/rector-html-output

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

igeek/rector-html-output
========================

Beautiful HTML output formatter for Rector PHP

v1.2.1(1mo ago)1342↓48.6%1MITPHPPHP ^8.3CI passing

Since Jan 5Pushed 1mo agoCompare

[ Source](https://github.com/coolamit/igeek-rector-html-output)[ Packagist](https://packagist.org/packages/igeek/rector-html-output)[ Docs](https://github.com/coolamit/igeek-rector-html-output)[ RSS](/packages/igeek-rector-html-output/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (8)Versions (7)Used By (1)

Rector HTML Output
==================

[](#rector-html-output)

Beautiful, self-contained HTML output formatter for [Rector PHP](https://getrector.com/).

---

[![GitHub PHPUnit Action Status](https://camo.githubusercontent.com/5f76de2ae794b2375d84d7113afcfd7dc3b5bf1b7a1e6f769ab5e92c5e8f2fd7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636f6f6c616d69742f696765656b2d726563746f722d68746d6c2d6f75747075742f706870756e69742e796d6c3f6272616e63683d6d6173746572266c6162656c3d5465737473)](https://github.com/coolamit/igeek-rector-html-output/actions/workflows/phpunit.yml)[![GitHub PHPStan Action Status](https://camo.githubusercontent.com/abbc8401d25086d0ba971718921bb6064d7d33b057717740ec4799e9cf4671ad/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636f6f6c616d69742f696765656b2d726563746f722d68746d6c2d6f75747075742f7068707374616e2e796d6c3f6272616e63683d6d6173746572266c6162656c3d5048505374616e)](https://github.com/coolamit/igeek-rector-html-output/actions/workflows/phpstan.yml)[![GitHub PhpCsFixer Action Status](https://camo.githubusercontent.com/8e876e93e3202348095f5ec4fb3cf50066deb5ea485c900515110109ee6cf517/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f636f6f6c616d69742f696765656b2d726563746f722d68746d6c2d6f75747075742f636f64652d7374796c652e796d6c3f6272616e63683d6d6173746572266c6162656c3d436f64652532305374796c65)](https://github.com/coolamit/igeek-rector-html-output/actions/workflows/code-style.yml)

[![License](https://camo.githubusercontent.com/6ec8b1f7fa2a0029fae2e2433703da5665acf20d563c7a99388c4daeef2d77c3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f6f6c616d69742f696765656b2d726563746f722d68746d6c2d6f75747075743f636f6c6f723d626c7565266c6162656c3d4c6963656e7365)](https://camo.githubusercontent.com/6ec8b1f7fa2a0029fae2e2433703da5665acf20d563c7a99388c4daeef2d77c3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f636f6f6c616d69742f696765656b2d726563746f722d68746d6c2d6f75747075743f636f6c6f723d626c7565266c6162656c3d4c6963656e7365)[![PHP](https://camo.githubusercontent.com/a010dd1cf8ae7af6b54a963f60784a1c969feac5eb4688142e20c8bb1d14dee6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f696765656b2f726563746f722d68746d6c2d6f75747075743f636f6c6f723d626c7565266c6162656c3d504850)](https://camo.githubusercontent.com/a010dd1cf8ae7af6b54a963f60784a1c969feac5eb4688142e20c8bb1d14dee6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f696765656b2f726563746f722d68746d6c2d6f75747075743f636f6c6f723d626c7565266c6162656c3d504850)[![Latest Version on Packagist](https://camo.githubusercontent.com/1cd1d7b3a979b093993b28d6d4aa5e104d014015a4b563b09852932691dc50b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f696765656b2f726563746f722d68746d6c2d6f75747075742e7376673f6c6162656c3d5061636b6167697374)](https://packagist.org/packages/igeek/rector-html-output)

---

Features
--------

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

[](#installation)

```
composer require --dev igeek/rector-html-output
```

Usage
-----

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

[](#basic-configuration)

Add to your `rector.php`:

```
