PHPackages                             dotsunited/bundlefu-twig-extension - 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. dotsunited/bundlefu-twig-extension

ActiveLibrary[Templating &amp; Views](/categories/templating)

dotsunited/bundlefu-twig-extension
==================================

Twig extension for BundleFu

v1.0.0(13y ago)35.0k21MITPHPPHP &gt;=5.3.0

Since Feb 29Pushed 11y ago8 watchersCompare

[ Source](https://github.com/dotsunited/BundleFuTwigExtension)[ Packagist](https://packagist.org/packages/dotsunited/bundlefu-twig-extension)[ Docs](https://github.com/dotsunited/BundleFuTwigExtension)[ RSS](/packages/dotsunited-bundlefu-twig-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (1)

Twig extension for BundleFu
===========================

[](#twig-extension-for-bundlefu)

[![Build Status](https://camo.githubusercontent.com/4e75cfc3823f43a17625d0013e295bde283211962bb598fa9c64e8c3e446b855/68747470733a2f2f7472617669732d63692e6f72672f646f7473756e697465642f42756e646c65467554776967457874656e73696f6e2e7376673f6272616e63683d6d6173746572)](http://travis-ci.org/dotsunited/BundleFuTwigExtension)

The BundleFuTwigExtension integrates [BundleFu](https://github.com/dotsunited/BundleFu) into the [Twig template engine](http://twig.sensiolabs.org).

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

[](#installation)

BundleFuTwigExtension can be installed using the [Composer](http://packagist.org) tool. You can either add `dotsunited/bundlefu-twig-extension` to the dependencies in your composer.json, or if you want to install BundleFuTwigExtension as standalone, go to the main directory and run:

```
$ wget http://getcomposer.org/composer.phar
$ php composer.phar install
```

You can then use the composer-generated autoloader to access the BundleFuTwigExtension classes:

```

```

Usage
-----

[](#usage)

Register the BundleFuExtension to your Twig environment:

```

```

The extension uses the factory to create bundle instances. See the [BundleFu documentation](https://github.com/dotsunited/BundleFu#readme) about how to configure the factory.

The extension exposes a new `bundle` tag with the following syntax:

```
{% bundle name='test_bundle'
          doc_root = '/my/docroot'
          bypass=false
          render_as_xhtml=true
          css_filter='css_filter'
          js_filter='js_filter'
          css_cache_path='cache'
          js_cache_path='cache'
          css_cache_url='/cache'
          js_cache_url='/cache'
%}

{% endbundle %}
```

License
-------

[](#license)

BundleFuTwigExtension is released under the [MIT License](https://github.com/dotsunited/BundleFuTwigExtension/blob/master/LICENSE).

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

5021d ago

Major Versions

0.9.0 → v1.0.02012-08-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/5de14776bbddf901c6e24d35829fe66fe997c303d53aca83cc7d1a90bb0b7110?d=identicon)[jsor](/maintainers/jsor)

---

Top Contributors

[![jsor](https://avatars.githubusercontent.com/u/55574?v=4)](https://github.com/jsor "jsor (43 commits)")

---

Tags

twigjavascriptcssextensionassetbundling

### Embed Badge

![Health badge](/badges/dotsunited-bundlefu-twig-extension/health.svg)

```
[![Health](https://phpackages.com/badges/dotsunited-bundlefu-twig-extension/health.svg)](https://phpackages.com/packages/dotsunited-bundlefu-twig-extension)
```

###  Alternatives

[nochso/html-compress-twig

Twig extension for compressing HTML and inline CSS/Javascript

84468.6k8](/packages/nochso-html-compress-twig)[twig/cssinliner-extra

A Twig extension to allow inlining CSS

23018.5M53](/packages/twig-cssinliner-extra)[teepluss/theme

Theme will help you organize your themes inside Laravel projects easily and maintain its related assets, layouts and partials for the theme in single directory.

543174.1k8](/packages/teepluss-theme)[dotsunited/bundlefu

BundleFu is a PHP 5.3+ library which bundles multiple css/javascript files into a big package and sends it out at once

7028.5k3](/packages/dotsunited-bundlefu)[odan/twig-assets

Caching and compression for Twig assets (JavaScript and CSS).

2223.0k4](/packages/odan-twig-assets)[redant/twig-components

Define reusable components in Twig.

3819.8k1](/packages/redant-twig-components)

PHPackages © 2026

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