PHPackages                             gulch/assets - 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. gulch/assets

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

gulch/assets
============

Package for gathering some type of assets (js, css) and write once into document.

1.1.2(5y ago)153MITPHPPHP ^7.1 || ^8.0

Since Jan 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/gulch/assets)[ Packagist](https://packagist.org/packages/gulch/assets)[ Docs](https://github.com/gulch/assets)[ RSS](/packages/gulch-assets/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (3)Versions (6)Used By (0)

[![Coverage Status](https://camo.githubusercontent.com/735e5294d275416d714eaf226506ac2b8c38e45bdf2dbdb70ba9fa3ea23fac2d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f67756c63682f6173736574732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/gulch/assets?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/35464338f7c94985bbee6853213a27aed03a0f121ae4c0342e461200f88eb33d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f67756c63682f6173736574732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/gulch/assets/?branch=master)

gulch/Assets
============

[](#gulchassets)

PHP Package for gathering some type of assets (js, css) and write once into document.

Special Thanks: [Funtime](https://funtime.kiev.ua) Team.

Install
-------

[](#install)

You will need [Composer](http://getcomposer.org) installed.

```
composer require gulch/assets
```

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

[](#how-to-use)

```
use gulch\Assets\Asset;
use gulch\Assets\Renderer\BodyCssRenderer;

$bodyCss = new Asset(new BodyCssRenderer);
$bodyCss->add('asset1.css')->add('asset2.css');
// ...
$bodyCss->add('asset3.css');

// ... and in your html template just write
$bodyCss->write();
```

Result

```

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

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

Every ~278 days

Total

5

Last Release

1929d ago

PHP version history (3 changes)1.0.0PHP ^7.0

1.1.1PHP ^7.1

1.1.2PHP ^7.1 || ^8.0

### Community

Maintainers

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

---

Top Contributors

[![gulch](https://avatars.githubusercontent.com/u/677974?v=4)](https://github.com/gulch "gulch (23 commits)")

---

Tags

phpjavascriptcsspreloadassetsscriptstylesstylesheets

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/gulch-assets/health.svg)

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

###  Alternatives

[nlac/nlsclientscript

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

208.2k](/packages/nlac-nlsclientscript)[dkcwd/dkcwd-zf2-munee

Zend Framework 2 module leveraging 'munee' an asset optimisation library developed by Cody Lundquist. You can find munee at http://github.com/meenie/munee

102.1k](/packages/dkcwd-dkcwd-zf2-munee)

PHPackages © 2026

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