PHPackages                             eltharin/twigfilesgetter - 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. eltharin/twigfilesgetter

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

eltharin/twigfilesgetter
========================

twigfilesgetter Bundle for symfony

V1.1.3(2y ago)1159GPL-3.0PHP

Since Aug 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/eltharin/TwigFilesGetter)[ Packagist](https://packagist.org/packages/eltharin/twigfilesgetter)[ RSS](/packages/eltharin-twigfilesgetter/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (6)Used By (0)

Symfony TwigFilesGetter Bundle
==============================

[](#symfony-twigfilesgetter-bundle)

[![Latest Stable Version](https://camo.githubusercontent.com/6380b0f27c64c5559a73cad2b95abfa8baceb12f315544a9c00149b0a3c0d252/687474703a2f2f706f7365722e707567782e6f72672f656c74686172696e2f7477696766696c65736765747465722f76)](https://packagist.org/packages/eltharin/twigfilesgetter)[![Total Downloads](https://camo.githubusercontent.com/8fb6e40f4a41550637254572c6321b756297b9ada6832b3d8dc096968b6aafb2/687474703a2f2f706f7365722e707567782e6f72672f656c74686172696e2f7477696766696c65736765747465722f646f776e6c6f616473)](https://packagist.org/packages/eltharin/twigfilesgetter)[![Latest Unstable Version](https://camo.githubusercontent.com/2e363d610e293990da090202cdf9ac812dc300efd2a0ed573271da6118e9f463/687474703a2f2f706f7365722e707567782e6f72672f656c74686172696e2f7477696766696c65736765747465722f762f756e737461626c65)](https://packagist.org/packages/eltharin/twigfilesgetter)[![License](https://camo.githubusercontent.com/2ed5b1531008b6cf26cc392a02f61362dd6197f0d75ded3b0b48c6c41f24d796/687474703a2f2f706f7365722e707567782e6f72672f656c74686172696e2f7477696766696c65736765747465722f6c6963656e7365)](https://packagist.org/packages/eltharin/twigfilesgetter)

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

[](#installation)

- Require the bundle with composer:

```
composer require eltharin/twigfilesgetter
```

What is TwigFilesGetter Bundle?
-------------------------------

[](#what-is-twigfilesgetter-bundle)

This bundle will help you to include css and js files once in your template.

Per example, when you make a Custom FormType who need a script, you can put in the buildView function the lines :

```
use Eltharin\TwigFilesGetterBundle\Service\FileManager;

...

public function buildView(FormView $view, FormInterface $form, array $options)
{
    FileManager::registerJsFile('/bundles/eltharinreloadablefield/js/reloader.js');
    ...
}
```

or in a twig template :

```
{% do addJs('/bundles/eltharinreloadablefield/js/reloader.js') %}

or

{% do addCss('fichier.css') %}

or with a group :

{% do addJs('fichier.js', 'group Name') %}
```

and in your template :

```
{{ get_required_js_files() }}

```

will write

```

```

if you want have js in head and after the page you can specify a 'group'

```
public function buildView(FormView $view, FormInterface $form, array $options)
{
    FileManager::registerJsFile('/bundles/eltharinreloadablefield/js/file_in_head.js', 'head');
    FileManager::registerJsFile('/bundles/eltharinreloadablefield/js/file_bottom.js', 'bottom');
    ...
}

```

and in your template :

```
in head :

{{ get_required_js_files('head') }}

and

{{ get_required_js_files('bottom') }}

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

Total

5

Last Release

792d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7547802?v=4)[eltharin](/maintainers/eltharin)[@eltharin](https://github.com/eltharin)

---

Top Contributors

[![eltharin](https://avatars.githubusercontent.com/u/7547802?v=4)](https://github.com/eltharin "eltharin (5 commits)")

---

Tags

symfonybundlewebcssJS

### Embed Badge

![Health badge](/badges/eltharin-twigfilesgetter/health.svg)

```
[![Health](https://phpackages.com/badges/eltharin-twigfilesgetter/health.svg)](https://phpackages.com/packages/eltharin-twigfilesgetter)
```

###  Alternatives

[almasaeed2010/adminlte

AdminLTE - admin control panel and dashboard that's based on Bootstrap 4

45.5k8.9M147](/packages/almasaeed2010-adminlte)

PHPackages © 2026

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