PHPackages                             wyrihaximus/html-compress-sculpin - 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. wyrihaximus/html-compress-sculpin

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

wyrihaximus/html-compress-sculpin
=================================

Compress/minify your HTML for Sculpin

1.0.0(10y ago)2736[1 issues](https://github.com/WyriHaximus/html-compress-sculpin/issues)[1 PRs](https://github.com/WyriHaximus/html-compress-sculpin/pulls)MITPHPPHP &gt;=5.4.0CI failing

Since Sep 26Pushed 1w ago2 watchersCompare

[ Source](https://github.com/WyriHaximus/html-compress-sculpin)[ Packagist](https://packagist.org/packages/wyrihaximus/html-compress-sculpin)[ RSS](/packages/wyrihaximus-html-compress-sculpin/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (9)Versions (3)Used By (0)

HtmlCompress for Sculpin
========================

[](#htmlcompress-for-sculpin)

[![Build Status](https://camo.githubusercontent.com/9d641d3051e0d5264b9a7dcdcd88215bb23222f4bef5a7b955cdbc2c81ddfbc3/68747470733a2f2f7472617669732d63692e6f72672f57797269486178696d75732f68746d6c2d636f6d70726573732d7363756c70696e2e706e67)](https://travis-ci.org/WyriHaximus/html-compress-sculpin)[![Latest Stable Version](https://camo.githubusercontent.com/b568e165b4a9bcad4ff46489b45cbc59a402a34db67f347986b99b900fd13537/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f68746d6c2d636f6d70726573732d7363756c70696e2f762f737461626c652e706e67)](https://packagist.org/packages/wyrihaximus/html-compress-sculpin)[![Total Downloads](https://camo.githubusercontent.com/d5ff1dab122bed9a1566e3ba429fb1aa1b1bde4b36e20e6df12be126ab5fe094/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f68746d6c2d636f6d70726573732d7363756c70696e2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/html-compress-sculpin)[![Code Coverage](https://camo.githubusercontent.com/b72870158ebfd8d58d43d8bbb6c0e560ee43f7e2d97a6e8595fc1ef0b1fdd12b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f57797269486178696d75732f68746d6c2d636f6d70726573732d7363756c70696e2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/WyriHaximus/html-compress-sculpin/?branch=master)[![License](https://camo.githubusercontent.com/f91fc25adfdeb8e2ec45fd9263c498fd25e9646eb4519050bb73f6b7da978cd8/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f68746d6c2d636f6d70726573732d7363756c70696e2f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/html-compress-sculpin)

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

[](#installation)

To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `~`.

```
composer require wyrihaximus/html-compress-sculpin

```

Basic Usage
-----------

[](#basic-usage)

Add the following to `app/config/sculpin_kernel.yml` will compress the generated HTML.

```
services:
    wyrihaximus.html_compress.compress:
        class: \WyriHaximus\HtmlCompress\Frameworks\SculpinListener
        tags:
            - {  name: kernel.event_listener, event: sculpin.core.after_format, method: onAfterFormatSmallest }
```

The `method` field has 3 possible values:

- onAfterFormatFastest - For HTML compression only
- onAfterFormat - For HTML and JavaScript compression
- onAfterFormatSmallest - For HTML and JavaScript compression where it lets all known JavaScript minifiers compete who can produce the smallest result

require-dev
-----------

[](#require-dev)

As you might have noticed require-dev contains some `odd` entries. (`composer/composer`, `dflydev/embedded-composer-core` and `dflydev/embedded-composer-console`) They are for `SculpinListener` tests.

License
-------

[](#license)

Copyright 2015 [Cees-Jan Kiewiet](http://wyrihaximus.net/)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance54

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

3934d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/147145?v=4)[Cees-Jan Kiewiet](/maintainers/WyriHaximus)[@WyriHaximus](https://github.com/WyriHaximus)

---

Top Contributors

[![WyriHaximus](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/WyriHaximus "WyriHaximus (9 commits)")

---

Tags

hacktoberfesthtmlcompresssculpin

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wyrihaximus-html-compress-sculpin/health.svg)

```
[![Health](https://phpackages.com/badges/wyrihaximus-html-compress-sculpin/health.svg)](https://phpackages.com/packages/wyrihaximus-html-compress-sculpin)
```

###  Alternatives

[voku/html-min

HTML Compressor and Minifier

1885.0M65](/packages/voku-html-min)[tubalmartin/cssmin

A PHP port of the YUI CSS compressor

23143.5M66](/packages/tubalmartin-cssmin)[caxy/php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.

21522.3M22](/packages/caxy-php-htmldiff)[wyrihaximus/html-compress

Compress/minify your HTML

791.7M36](/packages/wyrihaximus-html-compress)[wyrihaximus/minify-html

Html minifier for CakePHP3

18153.6k1](/packages/wyrihaximus-minify-html)

PHPackages © 2026

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