PHPackages                             braunstetter/assets-push-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. [Templating &amp; Views](/categories/templating)
4. /
5. braunstetter/assets-push-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

braunstetter/assets-push-bundle
===============================

A clean and easy way to extend your assets (css, js) from any point inside of your twig templates.

v0.2.1(4y ago)1651MITPHPPHP ^8

Since Aug 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Braunstetter/assets-push-bundle)[ Packagist](https://packagist.org/packages/braunstetter/assets-push-bundle)[ RSS](/packages/braunstetter-assets-push-bundle/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (8)Versions (4)Used By (1)

AssetsPushBundle
================

[](#assetspushbundle)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/741b569a49bf01a8d1aa8da7a2bc1b242ee88a1f0bfeb4a264b7b99c2b6db599/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f627261756e737465747465722f6173736574732d707573682d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/braunstetter/assets-push-bundle/?branch=main)[![Build Status](https://camo.githubusercontent.com/56698de71982b9dce86b53bc066dac192abd6e50baf28e7e1370b2c80c11e2de/68747470733a2f2f6170702e7472617669732d63692e636f6d2f427261756e737465747465722f6173736574732d707573682d62756e646c652e7376673f6272616e63683d6d61696e)](https://app.travis-ci.com/Braunstetter/assets-push-bundle)[![Total Downloads](https://camo.githubusercontent.com/c3782bb1166b64ef43aa36d36cbf632087db2853e184e09c27ab777e0eafd5a3/687474703a2f2f706f7365722e707567782e6f72672f627261756e737465747465722f6173736574732d707573682d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/braunstetter/assets-push-bundle)[![License](https://camo.githubusercontent.com/f82fb5aa6c3bc81ba0fa15eae0cc986057856414dec82a833ed0e1ec9c29c0ba/687474703a2f2f706f7365722e707567782e6f72672f627261756e737465747465722f6173736574732d707573682d62756e646c652f6c6963656e7365)](https://packagist.org/packages/braunstetter/assets-push-bundle)

Push your assets from everywhere inside your templates into the ``.

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

[](#installation)

`composer require braunstetter/assets-push-bundle`

Usage
-----

[](#usage)

After the installation you can use the two tags from each template to register additional resources.

```
{% css '/breadcrumbs.css' %}
{% js '/breadcrumbs.js' %}
```

After that you are able to query the assets with the `assets()` function.

It will give you an array of assets like that:

```
[
    'css' => [
        '/breadcrumbs.css',
        '/custom.css',
        '/app.css',
    ],

    'js' => [
        '/breadcrumbs.js'
    ],
]
```

Now you can use this on top of your pages:

```

    {% block title %}Welcome!{% endblock %}

    {% block metadata %}{% endblock %}

    {% block pushedJs deferred %}
    {% for asset in assets()['js'] %}

    {% endfor %}
    {% endblock %}

    {% block pushedCSS deferred %}
    {% for asset in assets()['css'] %}

    {% endfor %}
    {% endblock %}

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

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

Total

3

Last Release

1618d ago

### Community

Maintainers

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

---

Top Contributors

[![MichaelBrauner](https://avatars.githubusercontent.com/u/4937572?v=4)](https://github.com/MichaelBrauner "MichaelBrauner (19 commits)")

---

Tags

asset-managementassetssymfonytwigtwig-extensiontwig-templates

### Embed Badge

![Health badge](/badges/braunstetter-assets-push-bundle/health.svg)

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

###  Alternatives

[twig/extra-bundle

A Symfony bundle for extra Twig extensions

91292.0M313](/packages/twig-extra-bundle)[twig/intl-extra

A Twig extension for Intl

36663.2M218](/packages/twig-intl-extra)[rcrowe/twigbridge

Adds the power of Twig to Laravel

9105.9M50](/packages/rcrowe-twigbridge)[twig/string-extra

A Twig extension for Symfony String

21946.0M132](/packages/twig-string-extra)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M53](/packages/twig-cssinliner-extra)[symfony/ux-twig-component

Twig components for Symfony

21814.8M161](/packages/symfony-ux-twig-component)

PHPackages © 2026

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