PHPackages                             rafie/cssminifier - 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. rafie/cssminifier

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

rafie/cssminifier
=================

Simple css minifier for Laravel

v1.0(12y ago)058CSSPHP &gt;=5.4.0

Since May 3Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Whyounes/css-minifier)[ Packagist](https://packagist.org/packages/rafie/cssminifier)[ RSS](/packages/rafie-cssminifier/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Simple css minifier based on [GarryJones](https://github.com/GaryJones/Simple-PHP-CSS-Minification/) css minifer.

\##Installation

In your `composer.json` file, require `rafie/Cssminifier` and run `composer dumpautoload`.

After the download has finished, in your `app/config/app.php` you need to:

- Add `Rafie\Cssminifier\CssminifierServiceProvider` to the `providers` array.
- Add `'CssMin' => 'Rafie\Cssminifier\Facades\CssMin'` to the `aliases` array. ( only if you want to use the static interface `CssMin::minify(...)` )

\##Usage

```
//through the Ioc

$cssmin = App::make("cssmin");

$cssmin->minify(
  [
    'path/to/file1.css',
    'path/to/file2.css'
  ],
  'output/path',
  true,// (optional) remove comments or no
  false // (optional) concat the resulted files into one file 'all.min.css'
);

//Through the Facade

CssMin::minify(
  [
    'path/to/file1.css',
    'path/to/file2.css'
  ],
  'output/path',
  true,// (optional) remove comments or no
  false // (optional) concat the resulted files into one file 'all.min.css'
);

```

\##TODO write tests

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

4444d ago

### Community

Maintainers

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

---

Top Contributors

[![Whyounes](https://avatars.githubusercontent.com/u/1175548?v=4)](https://github.com/Whyounes "Whyounes (10 commits)")

### Embed Badge

![Health badge](/badges/rafie-cssminifier/health.svg)

```
[![Health](https://phpackages.com/badges/rafie-cssminifier/health.svg)](https://phpackages.com/packages/rafie-cssminifier)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M374](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M137](/packages/illuminate-cookie)

PHPackages © 2026

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