PHPackages                             diplix/html-pretty - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. diplix/html-pretty

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

diplix/html-pretty
==================

HTML Pretty-Print und Minifizierung für Kirby CMS

1.0.4(5mo ago)05MITPHPPHP &gt;=8.1

Since Nov 21Pushed 5mo agoCompare

[ Source](https://github.com/diplix/kirby-html-pretty)[ Packagist](https://packagist.org/packages/diplix/html-pretty)[ Docs](https://github.com/diplix/kirby-html-pretty)[ RSS](/packages/diplix-html-pretty/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Kirby HTML Pretty-Print Plugin
==============================

[](#kirby-html-pretty-print-plugin)

[![Cover](cover.png)](cover.png)

Formats Kirby HTML output and minifies JavaScript and CSS. I vibe coded this with cursor, but tested it extensively on .

Features
--------

[](#features)

- HTML formatting with indentation
- JavaScript minification
- CSS minification
- Removal of HTML comments
- Compatible with most Kirby caching mechanisms
- Disabled in debug mode

Installation
------------

[](#installation)

Copy the plugin directory to `site/plugins/kirby-html-pretty/`

Alternatively, you can install it with composer: `composer require diplix/html-pretty`

Configuration
-------------

[](#configuration)

You can configure the plugin options in your `config.php`:

```
return [
    'diplix.html-pretty.minifyJs' => true,        // Minify JavaScript (default: true)
    'diplix.html-pretty.minifyCss' => true,       // Minify CSS (default: true)
    'diplix.html-pretty.removeComments' => true,  // Remove HTML comments (default: true)
    'diplix.html-pretty.indentCharacters' => '    ', // Indentation characters (default: 4 spaces)
];
```

### Available Options

[](#available-options)

- **`diplix.html-pretty.minifyJs`** (boolean, default: `true`)
    Minifies inline JavaScript code.
- **`diplix.html-pretty.minifyCss`** (boolean, default: `true`)
    Minifies inline CSS code.
- **`diplix.html-pretty.removeComments`** (boolean, default: `true`)
    Removes HTML comments from the output.
- **`diplix.html-pretty.indentCharacters`** (string, default: `'    '`)
    Characters used for indentation (default: 4 spaces).

The plugin uses the `page.render:after` hook.

Additional Info
---------------

[](#additional-info)

- Uses `wa72/html-pretty-min` for formatting
- Hook: `page.render:after` (runs after all other plugins)
- Only active when `option('debug') !== true`

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance69

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

179d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4bc108445f320323189e1572edd53a32ac4f558bbd27a9f1dd3aa1e1da16d587?d=identicon)[diplix](/maintainers/diplix)

---

Top Contributors

[![diplix](https://avatars.githubusercontent.com/u/4541494?v=4)](https://github.com/diplix "diplix (16 commits)")

---

Tags

kirby-cmspretty-printjavascriptcsshtmlminifyformattingkirbykirby-pluginpretty-print

### Embed Badge

![Health badge](/badges/diplix-html-pretty/health.svg)

```
[![Health](https://phpackages.com/badges/diplix-html-pretty/health.svg)](https://phpackages.com/packages/diplix-html-pretty)
```

###  Alternatives

[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k30.5M336](/packages/matthiasmullie-minify)[stolz/assets

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[efficiently/larasset

Larasset is a library for Laravel 5 which manage assets in an easy way.

684.8k](/packages/efficiently-larasset)[trentrichardson/cakephp-shrink

Compiles, combines, and minifies javascript, coffee, less, scss, and css

1619.3k](/packages/trentrichardson-cakephp-shrink)[tobimori/kirby-tailwind-merge

Tailwind Merge for Kirby CMS

276.3k](/packages/tobimori-kirby-tailwind-merge)[nlac/nlsclientscript

Yii ClientScript extension for prevent reloading javascript and merging/minfying resources

208.2k](/packages/nlac-nlsclientscript)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
