PHPackages                             websharks/css-minifier - 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. websharks/css-minifier

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

websharks/css-minifier
======================

Compresses CSS.

150820(10y ago)181.6M↓12.9%12GPL-3.0+PHPPHP &gt;=5.3

Since May 10Pushed 9y ago3 watchersCompare

[ Source](https://github.com/websharks/css-minifier)[ Packagist](https://packagist.org/packages/websharks/css-minifier)[ Docs](https://github.com/websharks/css-minifier)[ RSS](/packages/websharks-css-minifier/feed)WikiDiscussions dev Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (2)

CSS Minification
----------------

[](#css-minification)

CSS minifier (i.e., compressor).

[![](https://camo.githubusercontent.com/f89af7efd2f55e0cd63098eed62ee7bb356b49b5d6ea09a8cb083ba1f3290d07/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f776562736861726b732f6373732d6d696e69666965722e737667)](https://github.com/websharks/css-minifier/blob/HEAD/LICENSE.txt)[![](https://camo.githubusercontent.com/fbb36fd2ffe8e6e39d45de7fe4c644d7f5fe8fe9f5c2d3d3988a9a23853161df/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6164652d772532465f3130302532355f707572655f617765736f6d655f73617563652d4142383135462e7376673f6c6162656c3d6d616465)](http://websharks-inc.com/)[![](https://camo.githubusercontent.com/d983a9cee2d6ae45788929f268bd90537221ac5e024789af268dd00e09df8093/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f62792d576562536861726b735f496e632e2d3635363539382e7376673f6c6162656c3d6279)](http://www.websharks-inc.com/team/)[![](https://camo.githubusercontent.com/a3a44fb48110c3ae68d73569979caefb5271440e38940740746829d69c402770/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f776562736861726b732f6373732d6d696e69666965722e7376673f6c6162656c3d6c6174657374)](https://github.com/websharks/css-minifier/releases)[![](https://camo.githubusercontent.com/adfbc9bf0011b755823be161513cee39aef50afd41f176bfa13f919adf74ee17/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776562736861726b732f6373732d6d696e69666965722e7376673f6c6162656c3d7061636b6167697374)](https://packagist.org/packages/websharks/css-minifier)[![](https://camo.githubusercontent.com/660178c0275aeb9a0793b225d15e7684d059a7374b92a215bccbbc461fbec209/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f776562736861726b732f6373732d6d696e69666965722e7376673f6c6162656c3d697373756573)](https://github.com/websharks/css-minifier/issues)[![](https://camo.githubusercontent.com/177e4499486d2eab5498273a1ef66ac68fe49471b08e2edc1b0774e4e749afc7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f776562736861726b732f6373732d6d696e69666965722e7376673f6c6162656c3d666f726b73)](https://github.com/websharks/css-minifier/network)[![](https://camo.githubusercontent.com/d280ebbddd9356a6025371b285865d9c13c74247a09aa2aaf4abadd49c158666/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f776562736861726b732f6373732d6d696e69666965722e7376673f6c6162656c3d7374617273)](https://github.com/websharks/css-minifier/stargazers)[![](https://camo.githubusercontent.com/73468a5a9fe7a2eb178872655c42822c03a43e8d0a6a3dd822d80d074de7c9c5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f776562736861726b732f6373732d6d696e69666965722f6c61746573742f746f74616c2e7376673f6c6162656c3d646f776e6c6f616473)](https://github.com/websharks/css-minifier/releases)[![](https://camo.githubusercontent.com/1a7b5b12e2c5aed443d7808c35a81bbe169c4fc31aa9f509b5fd02440b430456/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776562736861726b732f6373732d6d696e69666965722e7376673f6c6162656c3d7061636b6167697374)](https://packagist.org/packages/websharks/css-minifier)

---

Installation Instructions (Two Options)
---------------------------------------

[](#installation-instructions-two-options)

1. As a [Composer](https://packagist.org/packages/websharks/css-minifier) Dependency

```
{
    "require": {
        "websharks/css-minifier": "dev-master"
    }
}
```

2. Or, Download the PHAR Binary See:

---

Usage Example
-------------

[](#usage-example)

```
$css = '.hello { font-family: World; }';
$compressed_css = WebSharks\CssMinifier\Core::compress($css);
```

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

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 ~51 days

Total

3

Last Release

3924d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c9e574030ba64b0b14dfbe9adfbd7633e0304ab3e2cc54ed9f427822eb6dcda?d=identicon)[jaswsinc](/maintainers/jaswsinc)

![](https://www.gravatar.com/avatar/79743cc4ae9c5dd8e76f40dc6157461066649dc46ea9fd1b35c8c1b27a411ea5?d=identicon)[raamdev](/maintainers/raamdev)

---

Tags

csscompressorwebsharks

### Embed Badge

![Health badge](/badges/websharks-css-minifier/health.svg)

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

###  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)[scssphp/scssphp

scssphp is a compiler for SCSS written in PHP.

62827.7M220](/packages/scssphp-scssphp)[mexitek/phpcolors

A series of methods that let you manipulate colors. Just incase you ever need different shades of one color on the fly.

5003.6M18](/packages/mexitek-phpcolors)[wikimedia/less.php

PHP port of the LESS processor

12327.4M77](/packages/wikimedia-lessphp)[voku/html-min

HTML Compressor and Minifier

1804.7M39](/packages/voku-html-min)[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)
