PHPackages                             peehaa/minifine - 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. peehaa/minifine

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

peehaa/minifine
===============

Minifier for web resources

2.0.0(9y ago)4104MITPHPPHP ^7

Since May 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/PeeHaa/Minifine)[ Packagist](https://packagist.org/packages/peehaa/minifine)[ Docs](https://github.com/PeeHaa/Minifine)[ RSS](/packages/peehaa-minifine/feed)WikiDiscussions master Synced 1mo ago

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

Minifine
========

[](#minifine)

[![Build Status](https://camo.githubusercontent.com/b0aea400b478eca0035b9f0a55d871e451aecd2cb642d634479508d43324848a/68747470733a2f2f7472617669732d63692e6f72672f5065654861612f4d696e6966696e652e737667)](https://travis-ci.org/PeeHaa/Minifine) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/314199c1f83c675335b028868eaf3eeaf6cbb710b47bd38b13d0d219af7abc3d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5065654861612f4d696e6966696e652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PeeHaa/Minifine/?branch=master) [![Code Coverage](https://camo.githubusercontent.com/fd242ea7ef3a0f8ae8706bf1bb61f092b884ad90ffac539fd821f0dc08cd9696/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5065654861612f4d696e6966696e652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PeeHaa/Minifine/?branch=master) [![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/PeeHaa/Minifine/master/LICENSE)

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

[](#installation)

Simply include this library into your projects using composer:

```
"require": {
    "peehaa/minifine": "^2"
},

```

Requirements
------------

[](#requirements)

PHP 7+

Usage
-----

[](#usage)

### Basic usage

[](#basic-usage)

Only a couple of lines are needed to use Minifine. First an instance needs to be created. After that you can start combining and minifying resources:

```

```

results in:

```

    Page title

```

And:

```

```

results in:

```

```

For more advanced usages like using different minifiers and/or chaining minifiers please consult [the documentation](https://minifine.pieterhordijk.com/documentation/advanced-usage.php).

Documentation
-------------

[](#documentation)

The documentation (including the contribution guidelines) can be found on the [project's website](https://minifine.pieterhordijk.com).

License
-------

[](#license)

[MIT](http://spdx.org/licenses/MIT)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

3592d ago

Major Versions

1.0.0 → 2.0.02016-07-17

PHP version history (2 changes)1.0.0PHP &gt;=5.5

2.0.0PHP ^7

### Community

Maintainers

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

---

Top Contributors

[![PeeHaa](https://avatars.githubusercontent.com/u/1330296?v=4)](https://github.com/PeeHaa "PeeHaa (51 commits)")

---

Tags

cssJShtmlminifyuglify

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/peehaa-minifine/health.svg)

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

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

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[sensiolabs/minify-bundle

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

5694.9k1](/packages/sensiolabs-minify-bundle)[tholu/php-packer

A PHP version of Packer, JavaScript obfuscation library originally created by Dean Edwards

137441.2k5](/packages/tholu-php-packer)[jalle19/php-yui-compressor

A modern PHP wrapper for the YUI compressor

17972.2k3](/packages/jalle19-php-yui-compressor)[fisharebest/laravel-assets

Asset management for Laravel

208.1k](/packages/fisharebest-laravel-assets)

PHPackages © 2026

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