PHPackages                             pollen-solutions/asset - 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. pollen-solutions/asset

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

pollen-solutions/asset
======================

Pollen Solutions - Asset Component - Manage CSS styles, JS scripts, ...

v1.0.10(3y ago)05242MITPHPPHP ^7.4 || ^8.0

Since Jul 9Pushed 3y ago1 watchersCompare

[ Source](https://github.com/pollen-solutions/asset)[ Packagist](https://packagist.org/packages/pollen-solutions/asset)[ Docs](https://www.presstify.com/pollen-solutions/asset/)[ RSS](/packages/pollen-solutions-asset/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (7)Versions (13)Used By (2)

Asset Component
===============

[](#asset-component)

[![Latest Stable Version](https://camo.githubusercontent.com/048a5d44d728b1166b3a93e3345bb2f89b67d9fbc45383d3ea9b7bb482725607/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706f6c6c656e2d736f6c7574696f6e732f61737365742e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/pollen-solutions/asset)[![MIT Licensed](https://camo.githubusercontent.com/daa52099573be5a50c320c4387496400f2f722e49f86a42db8d5778130d3582d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e3f7374796c653d666f722d7468652d6261646765)](LICENSE.md)[![PHP Supported Versions](https://camo.githubusercontent.com/d9d71d0b69072c51e1ff7adfdb6270f896f75787500ce6437120e23727c081d1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d2533453d372e342d3838393242463f7374796c653d666f722d7468652d6261646765266c6f676f3d706870)](https://www.php.net/supported-versions.php)

Pollen Solutions **Asset** Component provides tools to manage assets in web applications.

Allows adding of inline Css styles, adding of inline JS scripts or passing PHP vars to Js global vars to access them in your own scripts.

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

[](#installation)

```
composer require pollen-solutions/asset
```

Basic Usage
-----------

[](#basic-usage)

```
use Pollen\Asset\AssetManager;

$asset = new AssetManager();

// Add inline CSS
$asset->addInlineCss(
    'body {
        background-color:AliceBlue;
    }'
);

// Add inline JS
$asset->addInlineJs(
    'console.log("value1");
     console.log("value2");
     console.log("value3");'
);

// Add global JS var
// -- app namespaced
$asset->addGlobalJsVar('test1', 'test-value1');

// -- in footer
$asset->addGlobalJsVar('test2', 'test-value2', true);

// -- in footer and without namespace
$asset->addGlobalJsVar('test3', 'test-value3', true, null);
```

Register asset
--------------

[](#register-asset)

@todo

Enqueue assets
--------------

[](#enqueue-assets)

@todo

Cache and Minification
----------------------

[](#cache-and-minification)

Coming soon

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

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

Every ~42 days

Recently: every ~50 days

Total

12

Last Release

1312d ago

### Community

Maintainers

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

---

Top Contributors

[![jordy-manner](https://avatars.githubusercontent.com/u/733356?v=4)](https://github.com/jordy-manner "jordy-manner (18 commits)")

---

Tags

phpcomponentassetpollen-solutions

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pollen-solutions-asset/health.svg)

```
[![Health](https://phpackages.com/badges/pollen-solutions-asset/health.svg)](https://phpackages.com/packages/pollen-solutions-asset)
```

###  Alternatives

[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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