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

ActiveSymfony-bundle

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

twigfilesgetter Bundle for symfony

V1.1.3(2y ago)1157GPL-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 1mo ago

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 37% 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

737d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fff318a46a2e2f50b3a9fb70ee232f3dc317397c0b9dea4f0ed8ac37160dc471?d=identicon)[eltharin](/maintainers/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

[twitter/bootstrap

The most popular front-end framework for developing responsive, mobile first projects on the web.

174.1k1.7M27](/packages/twitter-bootstrap)[onokumus/metismenu

A jQuery menu plugin

2.0k263.3k5](/packages/onokumus-metismenu)[robertotru/to-inline-style-email-bundle

A Symfony2 bundle for using the CssToInlineStyles translator by tijsverkoyen

59384.3k](/packages/robertotru-to-inline-style-email-bundle)[sensiolabs/minify-bundle

Assets Minifier (CSS, JS) for Symfony &amp; Minify integration in Asset Mapper

5694.9k1](/packages/sensiolabs-minify-bundle)[onokumus/metismenujs

A menu plugin

13210.2k](/packages/onokumus-metismenujs)[spomky-labs/web-push

Web-Push framework for PHP

281.8k](/packages/spomky-labs-web-push)

PHPackages © 2026

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