PHPackages                             saxulum/saxulum-assetic-twig-provider - 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. saxulum/saxulum-assetic-twig-provider

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

saxulum/saxulum-assetic-twig-provider
=====================================

Saxulum Assetic Twig Provider

2.0.5(10y ago)61.7k1MITPHPPHP &gt;=5.3.3,&lt;8.0

Since Jan 11Pushed 8y agoCompare

[ Source](https://github.com/saxulum-legacy/saxulum-assetic-twig-provider)[ Packagist](https://packagist.org/packages/saxulum/saxulum-assetic-twig-provider)[ RSS](/packages/saxulum-saxulum-assetic-twig-provider/feed)WikiDiscussions v1 Synced yesterday

READMEChangelog (2)Dependencies (13)Versions (22)Used By (0)

saxulum-assetic-twig-provider
=============================

[](#saxulum-assetic-twig-provider)

**works with plain silex-php**

[![Build Status](https://camo.githubusercontent.com/b8b510345c01a3a7064620339bb85f238ddee0aa02a6aa771f0dc0cbb5d6cff2/68747470733a2f2f6170692e7472617669732d63692e6f72672f736178756c756d2f736178756c756d2d617373657469632d747769672d70726f76696465722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/saxulum/saxulum-assetic-twig-provider)[![Total Downloads](https://camo.githubusercontent.com/402e80a0c8bf23f7191fb41ef637af2c54df4d9bef21881f970878bae66c8a19/68747470733a2f2f706f7365722e707567782e6f72672f736178756c756d2f736178756c756d2d617373657469632d747769672d70726f76696465722f646f776e6c6f6164732e706e67)](https://packagist.org/packages/saxulum/saxulum-assetic-twig-provider)[![Latest Stable Version](https://camo.githubusercontent.com/4f11dbfe84d0abe31839661c349c89f0a89f9d824d624c07b693bde50c6b4c74/68747470733a2f2f706f7365722e707567782e6f72672f736178756c756d2f736178756c756d2d617373657469632d747769672d70726f76696465722f762f737461626c652e706e67)](https://packagist.org/packages/saxulum/saxulum-assetic-twig-provider)

Features
--------

[](#features)

- Add assetic support for twig templates

Requirements
------------

[](#requirements)

- PHP 5.3+
- Kriswallsmith's Assets Framework (Assetic) 1.2+
- Symfony Finder Component 2.3+
- Twig 1.2+

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

[](#installation)

Through [Composer](http://getcomposer.org) as [saxulum/saxulum/saxulum-assetic-twig-provider](https://packagist.org/packages/saxulum/saxulum-assetic-twig-provider).

```
$app->register(new TwigServiceProvider());

$app['twig.loader.filesystem'] = $app->share($app->extend('twig.loader.filesystem',
    function (\Twig_Loader_Filesystem $twigLoaderFilesystem) {
        $twigLoaderFilesystem->addPath('/path/to/the/views', 'SomeNamespace');

        return $twigLoaderFilesystem;
    }
));

$app->register(new AsseticTwigProvider(), array(
    'assetic.asset.root' => '/path/to/project/root',
    'assetic.asset.asset_root' => '/path/to/asset/root',
));

```

Configuration
-------------

[](#configuration)

This filter are preconfigured, and active per default:

- csscopyfile
- lessphp
- scssphp
- cssmin
- csscompress
- jsmin

If you want to disable a default filter:

```
$app['assetic.filters'] = $container->share(
    $app->extend('assetic.filters', function ($filters) use ($app) {
        $filters['cssmin'] = false;
        return $filters;
    })
);

```

If you want to add more filters, which aren't preconfigured:

```
$container['assetic.filterinstances'] = $container->share(
    $app->extend('assetic.filterinstances', function ($filterInstances) use ($container) {
        $filterInstances['jsminplus'] = new JSMinPlusFilter();

        return $filterInstances;
    })
);

```

Usage
-----

[](#usage)

CSS example

```
{% stylesheets
    'relative/from/path/to/project/root/*.css'
    output='relative/from/path/to/asset/root/css/test.css'
    filter='cssmin'
%}
    {{ asset_url }}
{% endstylesheets %}

```

JS example

```
{% javascripts
    'relative/from/path/to/project/root/*.js'
    output='relative/from/path/to/asset/root/css/test.js'
    filter='jsmin'
%}
    {{ asset_url }}
{% endjavascripts %}

```

Copyright
---------

[](#copyright)

- Dominik Zogg

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity77

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

Recently: every ~218 days

Total

21

Last Release

2944d ago

Major Versions

1.4.0 → 2.0.02014-10-14

1.4.1 → 2.0.22015-11-29

1.4.2 → 2.0.32015-11-29

1.4.5 → 2.0.52015-12-01

PHP version history (2 changes)1.0PHP &gt;=5.3.3

2.0.2PHP &gt;=5.3.3,&lt;8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/55048de83ca5e5d8c67164a19c78edcaad413b0c1a4ae10d92edf8d77bedd90f?d=identicon)[dominikzogg](/maintainers/dominikzogg)

---

Top Contributors

[![dominikzogg](https://avatars.githubusercontent.com/u/1011217?v=4)](https://github.com/dominikzogg "dominikzogg (25 commits)")

---

Tags

twigasseticsilexpimplecilexsaxulum

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saxulum-saxulum-assetic-twig-provider/health.svg)

```
[![Health](https://phpackages.com/badges/saxulum-saxulum-assetic-twig-provider/health.svg)](https://phpackages.com/packages/saxulum-saxulum-assetic-twig-provider)
```

###  Alternatives

[spress/spress

Static site generator with blogs support

37436.2k](/packages/spress-spress)[iq2i/storia-bundle

UI Storia bundle

144.6k](/packages/iq2i-storia-bundle)

PHPackages © 2026

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