PHPackages                             basilicom-pimcore-plugin/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. basilicom-pimcore-plugin/minify

ActivePimcore-plugin[Utility &amp; Helpers](/categories/utility)

basilicom-pimcore-plugin/minify
===============================

Pimcore plugin with helper functions for minifying JS/CSS in templates

1.0.0(9y ago)04901GPLv3PHP

Since Feb 3Pushed 9y ago2 watchersCompare

[ Source](https://github.com/basilicom/pimcore-plugin-minify)[ Packagist](https://packagist.org/packages/basilicom-pimcore-plugin/minify)[ Docs](http://basilicom.de/en/pimcore)[ RSS](/packages/basilicom-pimcore-plugin-minify/feed)WikiDiscussions master Synced 1mo ago

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

Minify Plugin
=============

[](#minify-plugin)

Developer info: [Pimcore at basilicom](http://basilicom.de/en/pimcore)

Synopsis
--------

[](#synopsis)

This plugin adds two new classes to help with with CSS and Javascript combination / minification in layouts / templates.

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

[](#installation)

Add the "basilicom-pimcore-plugin/minify" requirement to the composer.json in the toplevel directory of your pimcore installation:

Example:

```
{
    "require": {
        "basilicom-pimcore-plugin/minify": ">=1.0.0"
    }
}

```

Or run:

```
composer require basilicom-pimcore-plugin/minify

```

Then enable and install the Minify plugin in Pimcore Extension Manager (Extras &gt; Extensions).

Integration
-----------

[](#integration)

Add to your templates:

```

```

Or for CSS:

```

```

Mode of operation
-----------------

[](#mode-of-operation)

If Pimcore operates in the DEBUG mode, JS/CSS files are not minified but individual html includes/tags for the files are generated - with timestamp based cache busters (`?ts=1486051521`).

In production mode, CSS and JS files are combined, minified, and written to the `/website/var/tmp/` directory as `plugin_minify_*` files. Each set of files gets their own cache file based on the md5 sum of the combined filenames. For CSS files, relative urls/paths are automatically rewritten.

You can force regeneration of the minified files by adding a `MINIFY_REFRESH`request parameter. Example: `http://localhost/test/?MINIFY_REFRESH`

Credits
-------

[](#credits)

Thanks to Dominik Pfaffenbauer for inspiration by providing a similar plugin:  (His one is using SimpleXML to parse the JS/CSS out of the DOM).

License
-------

[](#license)

GNU General Public License version 3 (GPLv3)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3381d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c0d06c93d4cfac61be4239ec123ca75a189a5275d4e1782755d85029e67b6bc?d=identicon)[christophluehr](/maintainers/christophluehr)

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

---

Top Contributors

[![christophluehr](https://avatars.githubusercontent.com/u/1352356?v=4)](https://github.com/christophluehr "christophluehr (2 commits)")

---

Tags

compressioncssjavascriptjsminificationminifypimcorepimcore-pluginpluginpluginhelperjavascriptcssminifypimcoreminifying

### Embed Badge

![Health badge](/badges/basilicom-pimcore-plugin-minify/health.svg)

```
[![Health](https://phpackages.com/badges/basilicom-pimcore-plugin-minify/health.svg)](https://phpackages.com/packages/basilicom-pimcore-plugin-minify)
```

###  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.5M331](/packages/matthiasmullie-minify)[stolz/assets

An ultra-simple-to-use assets management library

296519.2k8](/packages/stolz-assets)[efficiently/larasset

Larasset is a library for Laravel 5 which manage assets in an easy way.

684.8k](/packages/efficiently-larasset)[trentrichardson/cakephp-shrink

Compiles, combines, and minifies javascript, coffee, less, scss, and css

1619.3k](/packages/trentrichardson-cakephp-shrink)[nlac/nlsclientscript

Yii ClientScript extension for prevent reloading javascript and merging/minfying resources

208.2k](/packages/nlac-nlsclientscript)[fisharebest/laravel-assets

Asset management for Laravel

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

PHPackages © 2026

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