PHPackages                             yproximite/asset-dependency-bundle - 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. yproximite/asset-dependency-bundle

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

yproximite/asset-dependency-bundle
==================================

v2.0.0(8y ago)75.2kPHP

Since Feb 4Pushed 8y ago3 watchersCompare

[ Source](https://github.com/Yproximite/YllyAssetDependencyBundle)[ Packagist](https://packagist.org/packages/yproximite/asset-dependency-bundle)[ RSS](/packages/yproximite-asset-dependency-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Asset Dependency Bundle
=======================

[](#asset-dependency-bundle)

This bundle enables TWIG templates to declare that they need stylesheets and javascripts.

Usage
-----

[](#usage)

Twig templates can declare their dependencies like this:

```
{{ depends_on_stylesheet(['bundles/foobar/css/style.css']) }}
{{ depends_on_javascript(['bundles/foobar/js/jquery.js']) }}
```

Each dependency is then included once when the response is rendered.

The bundle also allows you to specify aliases in the configuration:

```
// app/config.yml
ylly_asset_dependency:
    javascript_alias_map:
        jquery: bundles/foobar/js/jquery.js
        jquery-ui: bundles/foobar/js/jquery-ui.js
    stylesheet_alias_map:
        style: bundles/foobar/css/style.css

// sometemplate.html.twig
{{ depends_on_stylesheet(['@style']) }}
{{ depends_on_javascript(['@jquery']) }}
```

To include the dependencies in your layout insert the following placeholders:

```

```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 77.8% 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 ~1021 days

Total

2

Last Release

3095d ago

Major Versions

v1.0.0 → v2.0.02017-11-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cc4596a870c941fcf8f77e998b26925e57942559718270f7cece4e0b43c2b6c?d=identicon)[RomulusED69](/maintainers/RomulusED69)

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

---

Top Contributors

[![dantleech](https://avatars.githubusercontent.com/u/530801?v=4)](https://github.com/dantleech "dantleech (7 commits)")[![tristanbes](https://avatars.githubusercontent.com/u/346010?v=4)](https://github.com/tristanbes "tristanbes (2 commits)")

### Embed Badge

![Health badge](/badges/yproximite-asset-dependency-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/yproximite-asset-dependency-bundle/health.svg)](https://phpackages.com/packages/yproximite-asset-dependency-bundle)
```

###  Alternatives

[zakirullin/mess

Convenient array-related routine &amp; better type casting

21228.9k2](/packages/zakirullin-mess)[clarkwinkelmann/flarum-ext-emojionearea

Add EmojioneArea emoji picker to Flarum

2848.5k2](/packages/clarkwinkelmann-flarum-ext-emojionearea)[dcat-admin-extension/ueditor

百度在线编辑器

205.5k](/packages/dcat-admin-extension-ueditor)[shibuyakosuke/laravel-postalcode-japan

郵便番号データを取り込んで住所マスタを作成します。

105.2k](/packages/shibuyakosuke-laravel-postalcode-japan)

PHPackages © 2026

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