PHPackages                             maybeworks/yii2-minify - 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. maybeworks/yii2-minify

AbandonedArchivedYii2-extension[Utility &amp; Helpers](/categories/utility)

maybeworks/yii2-minify
======================

Minify helper and component for Yii PHP framework 2.0

75.2k↑133.3%[1 issues](https://github.com/bartlab-archive/yii2-minify/issues)PHP

Since Feb 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/bartlab-archive/yii2-minify)[ Packagist](https://packagist.org/packages/maybeworks/yii2-minify)[ RSS](/packages/maybeworks-yii2-minify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

yii2-minify
===========

[](#yii2-minify)

Compress html and css/js in page component and helper for Yii PHP framework 2.0

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require "maybeworks/yii2-minify" "*"

```

or add

```
"maybeworks/yii2-minify" : "*"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

For usage as component - add to app config

```
'components'=>[
     'minifyManager' => [
            'class' => 'maybeworks\minify\MinifyManager',
            'html' => !YII_DEBUG,
            'css' => !YII_DEBUG,
            'js' => !YII_DEBUG,
     ]
]

'bootstrap' => [
     'minifyManager'
],
```

or use manual

```
$html = MinifyHelper::html($html);
$css = MinifyHelper::css($css);
$js = MinifyHelper::js($js);
```

> [![MaybeWorks](https://camo.githubusercontent.com/9f9031b17497548afc73171c238edb4ed7cd36afd203a0d3bbac1df3975ce5fd/687474703a2f2f6d617962652e776f726b732f6c6f676f2f6c6f676f5f6d772e706e67)](http://maybe.works)
> *Nothing is impossible, limit exists only in the minds of...*
> [maybe.works](http://maybe.works)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6072eea5615b5a1c1a32462b0ab0132d4dae4e897f13bb7ac5cb67bff27c9579?d=identicon)[B@RT](/maintainers/B@RT)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/maybeworks-yii2-minify/health.svg)

```
[![Health](https://phpackages.com/badges/maybeworks-yii2-minify/health.svg)](https://phpackages.com/packages/maybeworks-yii2-minify)
```

###  Alternatives

[aferrandini/urlizer

Library for urlizer

24768.2k8](/packages/aferrandini-urlizer)[coderevolutionplugins/gpt-3-encoder-php

PHP BPE Text Encoder/Decoder for GPT-2 / GPT-3

10046.1k](/packages/coderevolutionplugins-gpt-3-encoder-php)[cjstroud/classnames-php

A simple PHP utility for conditionally joining classNames together

20166.9k1](/packages/cjstroud-classnames-php)

PHPackages © 2026

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