PHPackages                             wyrihaximus/css-compress - 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/css-compress

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

wyrihaximus/css-compress
========================

Compress/minify your CSS

2.3.0(8mo ago)6649.2k↓11.7%2[5 PRs](https://github.com/WyriHaximus/php-css-compress/pulls)1MITMakefilePHP ^8.4CI passing

Since Jul 7Pushed 2mo agoCompare

[ Source](https://github.com/WyriHaximus/php-css-compress)[ Packagist](https://packagist.org/packages/wyrihaximus/css-compress)[ GitHub Sponsors](https://github.com/WyriHaximus)[ RSS](/packages/wyrihaximus-css-compress/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (9)Versions (16)Used By (1)

CssCompress
===========

[](#csscompress)

[![Build Status](https://camo.githubusercontent.com/0a7a4a00b62f61b7f502eedc8870861107d45e496c1d55c5191e63e950b84d2f/68747470733a2f2f7472617669732d63692e636f6d2f57797269486178696d75732f7068702d6373732d636f6d70726573732e706e67)](https://travis-ci.com/WyriHaximus/php-css-compress)[![Latest Stable Version](https://camo.githubusercontent.com/35be678618e4df36d34c217356420c5669cffd702e30b9f195b0c6ea5849f040/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f6373732d636f6d70726573732f762f737461626c652e706e67)](https://packagist.org/packages/WyriHaximus/css-compress)[![Total Downloads](https://camo.githubusercontent.com/d326d6cc65f46ae7f6847a33e405019688d9570db2dd6020da348ecb3623a063/68747470733a2f2f706f7365722e707567782e6f72672f57797269486178696d75732f6373732d636f6d70726573732f646f776e6c6f6164732e706e67)](https://packagist.org/packages/WyriHaximus/css-compress)[![Coverage Status](https://camo.githubusercontent.com/1676a22c4aa42ba92ebea38d14c0ac584a592f80f95c62585ab529b91557c152/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f57797269486178696d75732f7068702d6373732d636f6d70726573732f62616467652e706e67)](https://coveralls.io/r/WyriHaximus/php-css-compress)[![License](https://camo.githubusercontent.com/64acfef12b53fc438c390e75c1c0b3eea41339b4f0ad18acafcc713792a8b74d/68747470733a2f2f706f7365722e707567782e6f72672f77797269686178696d75732f6373732d636f6d70726573732f6c6963656e73652e706e67)](https://packagist.org/packages/wyrihaximus/css-compress)

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/css-compress

```

License
-------

[](#license)

Copyright 2025 [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

59

—

FairBetter than 99% of packages

Maintenance74

Regular maintenance activity

Popularity43

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 63.1% 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 ~319 days

Recently: every ~340 days

Total

8

Last Release

269d ago

Major Versions

1.1.0 → 2.0.02021-11-30

PHP version history (5 changes)1.0.0PHP ^7.2

1.1.0PHP ^8 || ^7.4

2.1.0PHP ^8

2.2.0PHP ^8.3

2.3.0PHP ^8.4

### 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 (383 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (127 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (41 commits)")[![renovate-runner[bot]](https://avatars.githubusercontent.com/u/147145?v=4)](https://github.com/renovate-runner[bot] "renovate-runner[bot] (14 commits)")[![voku](https://avatars.githubusercontent.com/u/264695?v=4)](https://github.com/voku "voku (14 commits)")[![dependabot-support](https://avatars.githubusercontent.com/u/112581971?v=4)](https://github.com/dependabot-support "dependabot-support (8 commits)")[![nochso](https://avatars.githubusercontent.com/u/6887618?v=4)](https://github.com/nochso "nochso (8 commits)")[![nlemoine](https://avatars.githubusercontent.com/u/2526939?v=4)](https://github.com/nlemoine "nlemoine (4 commits)")[![RobinDev](https://avatars.githubusercontent.com/u/3944894?v=4)](https://github.com/RobinDev "RobinDev (2 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")[![devteam-emroc](https://avatars.githubusercontent.com/u/104580363?v=4)](https://github.com/devteam-emroc "devteam-emroc (2 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")[![dfeyer](https://avatars.githubusercontent.com/u/221173?v=4)](https://github.com/dfeyer "dfeyer (1 commits)")

---

Tags

hacktoberfesthtmlcompress

### Embed Badge

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

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

###  Alternatives

[wyrihaximus/html-compress

Compress/minify your HTML

841.6M31](/packages/wyrihaximus-html-compress)[voku/html-min

HTML Compressor and Minifier

1804.7M39](/packages/voku-html-min)[caxy/php-htmldiff

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

21320.9M15](/packages/caxy-php-htmldiff)[mrclay/jsmin-php

Provides a modified port of Douglas Crockford's jsmin.c, which removes unnecessary whitespace from JavaScript files.

5312.9M27](/packages/mrclay-jsmin-php)[wyrihaximus/minify-html

Html minifier for CakePHP3

18148.3k1](/packages/wyrihaximus-minify-html)[websharks/html-compressor

Combines &amp; compresses CSS/JS/HTML code.

407.1k1](/packages/websharks-html-compressor)

PHPackages © 2026

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