PHPackages                             noroman/phpack - 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. noroman/phpack

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

noroman/phpack
==============

v0.0.2(8y ago)016MITPHP

Since Nov 29Pushed 8y agoCompare

[ Source](https://github.com/NovikovRoman/PHPack)[ Packagist](https://packagist.org/packages/noroman/phpack)[ RSS](/packages/noroman-phpack/feed)WikiDiscussions master Synced 6d ago

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

PHP packer
==========

[](#php-packer)

В src директории стилей создаем файл build.json

Пример,

```
{
  "common": [
    "3",
    "2",
    "1"
  ],
  "admin": [
    "4",
    "import/5",
    "1"
  ],
  "personal": [
    "3",
    "2",
    "4"
  ]
}
```

где ключи (`common`, `admin`, `personal`) имена файлов для сборки css. Массив - имена файлов `scss`. Перечисление в необходимом порядке сборки. Расширения не ставить. Предполагается что расширения `scss`.

Использование:

```
// ...
$isProduction = false; // or true
$cp = new CssPack(
    '/scss/', // абсолютный путь к файлам scss
    '/web/assets/css/' // абсолютный путь к сборкам css
);
$cp->setProduction($isProduction);
// путь к скриптам для web-страниц
$cp->setRelativeWebPath('/assets/css/');
// получим путь к сборке `common`
echo '';
echo '' . $cp->compileCrunched('common', true) . '';
// ...
```

Для production проверяется есть ли собранный css-файл и отдает путь к уже готовому файлу. Для developing файл собирается каждый раз заново. При деплое нужно предусмотреть очистку сборок css для обновления.

Аналогично работает с js (В src директории js создаем файл build.json и тп).

```
// ...
$isProduction = false; // or true
$jp = new JsPack(
    '/js/', // абсолютный путь к файлам js
    '/dist/js/' // абсолютный путь к сборкам js
);
$jp->setProduction($isProduction);
// путь к скриптам для web-страниц
$jp->setRelativeWebPath('/dist/js/');
echo '';
echo '' . $jp->compileCrunched('main', true) . '';
// ...
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

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

Total

2

Last Release

3089d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c6eaa92f95c851aa5b48a6e3f1e442a6bb2948c1dd0fc776f57c5a580696849?d=identicon)[noRoman](/maintainers/noRoman)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/noroman-phpack/health.svg)

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

###  Alternatives

[devfactory/minify

A package for minifying styles and javascript for laravel 5

87363.5k14](/packages/devfactory-minify)[panique/laravel-sass

Compiles your Sass .scss files to .css every time you run your app (in development)

73171.8k1](/packages/panique-laravel-sass)[trentrichardson/cakephp-shrink

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

1619.3k](/packages/trentrichardson-cakephp-shrink)[joseki/webloader-filters

This is an extension of janmarek/webloader. This extension contains filters to minify js and css.

12229.1k8](/packages/joseki-webloader-filters)[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)
