PHPackages                             juanchosl/assetminifyer - 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. juanchosl/assetminifyer

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

juanchosl/assetminifyer
=======================

Simple library in order to minify js and css files used as assets into web projects

1.0.1(2y ago)118MITPHPPHP ^8.1

Since Feb 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/JuanchoSL/AssetMinifyer)[ Packagist](https://packagist.org/packages/juanchosl/assetminifyer)[ Docs](https://github.com/JuanchoSL/AssetMinifyer)[ RSS](/packages/juanchosl-assetminifyer/feed)WikiDiscussions master Synced 1mo ago

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

ASSET MINIFYER
==============

[](#asset-minifyer)

Description
-----------

[](#description)

Simple library in order to minify js and css files used as assets into web projects

How to use
----------

[](#how-to-use)

### Directly to driver

[](#directly-to-driver)

```
use JuanchoSL\AssetMinifyer\Drivers\JSMin;

$minifyed_content = JSMin::minify($js_code);
```

or

```
use JuanchoSL\AssetMinifyer\Drivers\CSSMin;

$minifyed_content = CSSMin::minify($css_code);
```

### Use Adapter for contents

[](#use-adapter-for-contents)

```
use JuanchoSL\AssetMinifyer\Adapters\Minifyer;

$minifyer = new Minifyer();
$js_minifyed = $minifyer->cleanJs($js_code);
$css_minifyed = $minifyer->cleanCss($css_code);
```

### Use Adapter for some files

[](#use-adapter-for-some-files)

The files contents will minifyed and concatenated. Do not use for distinct file types.

```
use JuanchoSL\AssetMinifyer\Adapters\Minifyer;

$minifyer = new Minifyer();
$minifyer->addFiles([$asset_fullpath_1, $asset_fullpath_2]);
$asset_minifyed = $minifyer->getContent();
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

2

Last Release

796d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bd6d3dea7eb469817524c42a80683e95793ed4800a6794366503355af046a726?d=identicon)[Juanchosl](/maintainers/Juanchosl)

---

Top Contributors

[![JuanchoSL](https://avatars.githubusercontent.com/u/18701207?v=4)](https://github.com/JuanchoSL "JuanchoSL (11 commits)")

---

Tags

cssJSminifyer

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/juanchosl-assetminifyer/health.svg)

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

###  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.5M332](/packages/matthiasmullie-minify)[onokumus/metismenu

A jQuery menu plugin

2.0k263.3k5](/packages/onokumus-metismenu)[sciactive/pnotify

Beautiful JavaScript notifications.

3.6k6.4k](/packages/sciactive-pnotify)[stolz/assets

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[jalle19/php-yui-compressor

A modern PHP wrapper for the YUI compressor

17972.2k3](/packages/jalle19-php-yui-compressor)[sensiolabs/minify-bundle

Assets Minifier (CSS, JS) for Symfony &amp; Minify integration in Asset Mapper

5694.9k1](/packages/sensiolabs-minify-bundle)

PHPackages © 2026

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