PHPackages                             zeeyn/evocms-minifier - 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. zeeyn/evocms-minifier

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

zeeyn/evocms-minifier
=====================

Minifier for evolution cms

v1.2.0(6y ago)53401[2 issues](https://github.com/ZeeyN/evocms-minifier/issues)MITPHPPHP &gt;=7.2

Since Nov 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ZeeyN/evocms-minifier)[ Packagist](https://packagist.org/packages/zeeyn/evocms-minifier)[ RSS](/packages/zeeyn-evocms-minifier/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

evocms-minifier
===============

[](#evocms-minifier)

EvolutionCMS 2.\* minifier

Install
-------

[](#install)

`php artisan package:installrequire zeeyn/evocms-minifier "^1.2.0"` in you **/core/** folder

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

[](#how-to-use)

From version 1.2 Minifier calling from Blade directives. Little about them:

- `@minjs(array $files, int $no_laravel_cache = 0, int $minify = 1, string $output_path = '')`
- `@mincss(array $files, int $no_laravel_cache = 0, int $minify = 1, string $output_path = '')`
- `@minifier(array $files, int $no_laravel_cache = 0, int $minify = 1, string $output_path = '')`

As you can see syntax didn't changed too much, as old commands new directives are calling in same places of blade page. Changes touched optimisation spheres, as example:

In old versions you may use minifier not in all documents, but it will prepares for your document every time. Directives are preparing and working only if you call them.

How to use (old versions v.1.1.2 and older)
-------------------------------------------

[](#how-to-use-old-versions-v112-and-older)

In released version you have 3 general functions:

- `{{ $minifier->activate( $files, $no_laravel_cache = 0, $minify = 1, $output_path = '' ) }}`
- `{{ $minifier->js( $files, $no_laravel_cache = 0, $minify = 1, $output_path = '' ) }}`
- `{{ $minifier->css( $files, $no_laravel_cache = 0, $minify = 1, $output_path = '' ) }}`

Distinctions:

- `activate()` gets `$files` parameter and automatically gets their extension;
- `js()` accepts only `*.js` files to use;
- `css()` accepts only `*.css` files;

That means that `activate()` method you can use for css and js files (just place it in right place basing on files extensions) but `js()` and `css()` will work only with `*.js` and `*.css` files and you must place them on right place (`css()` in head, `js()` in bottom of ``)

Explanation
-----------

[](#explanation)

- `$minifier` -- document variable, generates automatically.
- `activate()`, `css()`, `js()` -- starting function, all that you will use.
- `$files` -- array of file paths example: `$file = ['/example/path/file.{css or js}', ...]`
- `$no_laravel_cache` -- flag that signals to script user or not Laravel cache system, **default == 0**
- `$minify` -- integer variable, activates min file generation, **default == 1**
- `$output_path` -- path where generated min file will saves, **default -- root folder**
- `@minjs` -- Blade directive that do the same as `$minifier->js()` method.
- `@mincss` -- Blade directive that do the same as `$minifier->css()` method.
- `@minifier` -- Blade adaptive directive that do the same as `$minifier->activate()` method.

Example of use
--------------

[](#example-of-use)

for css:

```
    ...
    Title

     {!! $minifier->activate(['css/style.css','css/style2.css', 'css/style3.css']) !!}

    ...

```

or directive

```
    ...
    Title

     @mincss(['css/style.css','css/style2.css', 'css/style3.css'])
     //or
     @minifier(['css/style.css','css/style2.css', 'css/style3.css'])
    ...

```

for js:

```
     {!! $minifier->activate(['js/script1.js','js/script2.js', 'js/script3.js']) !!}

```

or directive

```
    ...
    Title

     @minjs(['css/style.css','css/style2.css', 'css/style3.css'])
     //or
     @minifier(['css/style.css','css/style2.css', 'css/style3.css'])

    ...

```

That's all, now let's see, what in output:

code:

```
    {!! $minifier->activate(['css/style.css','css/style2.css', 'css/style3.css']) !!}
    //or
    @minifier(['css/style.css','css/style2.css', 'css/style3.css'])

```

devTool:

```

```

As you can see, minifier creates new file, that contains info from all files before

For js files will be same, but used with `` tag

Rules of use
------------

[](#rules-of-use)

if you want to change generated file you must:

- change raw files (NOT GENERATED)
- clear site cache\*
- refresh site (F5 ets.)

> \*In EvolutionCMS 2.\* release you can clear cache from manager panel in versions between RC and release you must do `php artisan cache:clear` from your **/core/** folder

in `$files` array paths to files must stands on order of including:

good:

```
$files = ['jquery.min.js', 'script.js'] //or another js lib

```

bad:

```
$files = ['script.js', 'jquery.min.js'] //or another js lib

```

with the `*.css` files that rule using too

More info
---------

[](#more-info)

- if you set `$minify` variable to `0` script will output ol added files with auto version `*.*?v=*`
- if you set `$no_laravel_cache` variable to `1` script will always generate minified file, not recommended for large `.css` files

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

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

Total

4

Last Release

2224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b23a3a3cd1990ed86ea0f640caee8582011558a6e1eccce75037c9e38ac091e?d=identicon)[ZeeyN](/maintainers/ZeeyN)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/zeeyn-evocms-minifier/health.svg)

```
[![Health](https://phpackages.com/badges/zeeyn-evocms-minifier/health.svg)](https://phpackages.com/packages/zeeyn-evocms-minifier)
```

###  Alternatives

[grafite/forms

A remarkably magical form package for Laravel.

376.5k1](/packages/grafite-forms)

PHPackages © 2026

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