PHPackages                             electrotiti/tlassets-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. electrotiti/tlassets-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

electrotiti/tlassets-bundle
===========================

Symfony assets management with Gulp

111PHP

Since Oct 7Pushed 11y agoCompare

[ Source](https://github.com/electrotiti/tlassets-bundle)[ Packagist](https://packagist.org/packages/electrotiti/tlassets-bundle)[ RSS](/packages/electrotiti-tlassets-bundle/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependenciesVersions (1)Used By (0)

tlassets-bundle
===============

[](#tlassets-bundle)

[![Build Status](https://camo.githubusercontent.com/2e12660a8ba9bcd4398d623d5749b2a668c678f3c9aad5bc2814d6acbdf04084/68747470733a2f2f7472617669732d63692e6f72672f656c656374726f746974692f746c6173736574732d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/electrotiti/tlassets-bundle)

TlAssetsBundle is an alternative to Assetic, it build your assets using NodeJS, GULP and custom Twig tags on a Symfony2 project.

**WARNING: This bundle is under development, do not use on production.**

How it works ?
--------------

[](#how-it-works-)

**1:/** In your Twig template, use the tags "style" and "js" to give assets source path and optional filters

**2:/** The parser, find all Twig template with these tags and create a JSON buffer file in cache that describe the location of source path, the destination filename and some others options

**3:/** The compiler read the buffer files previously created and compile the final assets with GULP

The goal of these two steps (and not one step like assetic does), is to parse your Twig template only when your assets definition change, and compile your assets only when you modify the content of your assets file.

Prerequisites
-------------

[](#prerequisites)

First you have to install in your environment this tools:

- Node JS
- NPM

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

[](#installation)

### Gulp and dependencies

[](#gulp-and-dependencies)

In order to install Gulp and his dependencies, execute command this command :

```
php app/console tlassets:gulp:install

```

Tags Twig
---------

[](#tags-twig)

Below an example of tags that you can use in your Twig

```
{% style "@MyCustomBundle/Resources/public/less/" filter="less" %}

{% endstyle %}

{% js "@MyCustomBundle/Resources/public/js/" %}

{% endjs %}
```

Install your assets:
--------------------

[](#install-your-assets)

```
php app/console assets:install

```

*This command (from Symfony), copy your assets from the folder : "src/" to the folder : "web/bundles/"*

Quick assets compilation
------------------------

[](#quick-assets-compilation)

To compile quickly your assets you just have to do this:

```
php app/console assets:dump

```

*This command do a tlassets:flush, a tlassets:parse and a tlassets:compile"*

Generate your assets step by step
---------------------------------

[](#generate-your-assets-step-by-step)

Alternatively (and it's why this bundle is different of Assetic), each task on assets construction can be do separately

### Flush previous compilation

[](#flush-previous-compilation)

```
php app/console tlassets:flush

```

*This command remove cache and assets previously generated in order to have a clean environment*

### Parse Twig template

[](#parse-twig-template)

```
php app/console tlassets:parse

```

*This command parse your Twig template and create a JSON file on the cache directory that will be used by GULP*

### Compile assets

[](#compile-assets)

```
php app/console tlassets:compile

```

*This command retrieves all file buffer previously created with the parsing command and compile the final assets files*

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![electrotiti](https://avatars.githubusercontent.com/u/5476023?v=4)](https://github.com/electrotiti "electrotiti (40 commits)")

### Embed Badge

![Health badge](/badges/electrotiti-tlassets-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/electrotiti-tlassets-bundle/health.svg)](https://phpackages.com/packages/electrotiti-tlassets-bundle)
```

PHPackages © 2026

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