PHPackages                             quanzo/yii2-resource-collector - 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. [Templating &amp; Views](/categories/templating)
4. /
5. quanzo/yii2-resource-collector

ActiveLibrary[Templating &amp; Views](/categories/templating)

quanzo/yii2-resource-collector
==============================

Connecting resources defined with views for Yii 2

1.0.2(6y ago)03MITPHPPHP &gt;=7.0

Since Aug 24Pushed 6y ago1 watchersCompare

[ Source](https://github.com/quanzo/yii2-resourceCollector)[ Packagist](https://packagist.org/packages/quanzo/yii2-resource-collector)[ RSS](/packages/quanzo-yii2-resource-collector/feed)WikiDiscussions master Synced yesterday

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

resourseCollector module for Yii 2
==================================

[](#resoursecollector-module-for-yii-2)

- The module allows you to set styles and scripts for each template. To do this, set two files with the template name and with the extensions css and / or js. In such resources relative links cannot be used.
- Each type of resource is combined into a file. These files are placed in a folder, available for web service. And these resources are connected to the page.
- Compression of other resources into one file is available.
- Scss files will be converted to css. Customization required.
- Marking resources as preload is supported ([https://developer.mozilla.org/ru/docs/Web/HTML/Preloading\_content](https://developer.mozilla.org/ru/docs/Web/HTML/Preloading_content)).

\--------------------------------------------------------------------------

- Модуль позволяет задавать к каждому шаблону стили и скрипты. Для этого задаются два файла с именем шаблона и с расширениями css и/или js. В таких ресурсах нельзя использовать относительные ссылки.
- Каждый тип ресурсов объединяется в файл. Эти файлы размещаются в папку, доступную для вебсервиса. И эти ресурсы подключаются к странице.
- Доступно сжатие других ресурсов в один файл.
- Файлы scss будут преобразованы в css. Необходима настройка.
- Поддерживается пометка ресусов, как preload ([https://developer.mozilla.org/ru/docs/Web/HTML/Preloading\_content](https://developer.mozilla.org/ru/docs/Web/HTML/Preloading_content)).

\--------------------------------------------------------------------------

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

[](#installation)

1. Copy to the folder with modules and connect *autoload.php*
2. Or use composer: add to the *require* section of the project `"quanzo/yii2-resource-collector": "*"` or `composer require "quanzo/yii2-resource-collector"`
3. Add to configuration

```
$config = [
    'bootstrap' => [
        'collector',
    ],
    'modules' => [
        'collector' => [
            'class' => 'x51\yii2\modules\resourceCollector\Module',
            'cacheDir' => 'cache', // sets the name of the folder for saving cached resources (optional)
            'optimizeCss' => false, // merge styles files
            'optimizeJs' => false, // merge script files
            'preload' => [], // or function ():array list of files to preload
            'exclude' => [
                '*ckeditor*'
            ], // or function ():array list of mask for exclude from optimize
            'scssImportPath' => [], // a list of directories in which files scss for @import will occur
            'scssVar' => [], // variables for scss
            'scssFunc' => [], // functions for scss
        ],
    ]
];

```

Events
------

[](#events)

no

Methods
-------

[](#methods)

no

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Total

2

Last Release

2449d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/10706162?v=4)[quanzo](/maintainers/quanzo)[@quanzo](https://github.com/quanzo)

---

Top Contributors

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

---

Tags

viewyii2packed csspacked js

### Embed Badge

![Health badge](/badges/quanzo-yii2-resource-collector/health.svg)

```
[![Health](https://phpackages.com/badges/quanzo-yii2-resource-collector/health.svg)](https://phpackages.com/packages/quanzo-yii2-resource-collector)
```

###  Alternatives

[rmrevin/yii2-minify-view

Yii2 View component with auto minification css &amp; js in runtime

194302.3k7](/packages/rmrevin-yii2-minify-view)[ogheo/yii2-htmlcompress

Compress HTML output into a single line

20184.4k1](/packages/ogheo-yii2-htmlcompress)[marekpetras/yii2-calendarview-widget

CalendarView widget for Yii 2 Framework.

2229.1k](/packages/marekpetras-yii2-calendarview-widget)[raoul2000/yii2-workflow-view

A simple widget to display your workflows

1638.8k20](/packages/raoul2000-yii2-workflow-view)

PHPackages © 2026

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