PHPackages                             raichev/twig-turbo-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. [Templating &amp; Views](/categories/templating)
4. /
5. raichev/twig-turbo-bundle

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

raichev/twig-turbo-bundle
=========================

Opinionated extension for Symfony UX Turbo

v1.0.0(2y ago)0715MITPHPPHP ^7.4|^8

Since Jan 2Pushed 2y ago1 watchersCompare

[ Source](https://github.com/DRaichev/twig-turbo-bundle)[ Packagist](https://packagist.org/packages/raichev/twig-turbo-bundle)[ RSS](/packages/raichev-twig-turbo-bundle/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

twig-turbo
==========

[](#twig-turbo)

Opinionated extension for Symfony UX Turbo.

This bundle is meant to be used alongside Symfony UX Turbo and provides a fast, simple and efficient way to create turbo frames

Simple example:
---------------

[](#simple-example)

1. We create the frame template ("myFrame.html.twig"), by extending the base and setting the frameId &amp; frameSrc

```
{% extends 'turbo_frame_base.html.twig' %}

{% set frameId = 'my-frame' %}
{% set frameSrc = path('app_controller_myframe') %}

{% block content %}

        My Template Content

{% endblock %}
```

2. We load the frame in twig using the turboFrame function, passing the frame template as the first argument

```
{{ turboFrame('myFrame.html.twig'}}
```

3. In the controller method we render the frame

```
    #[Route('/myframe', name: 'myframe', methods: ['GET'])]
    public function myFrame(): Response
    {
        return $this->render(
            'myFrame.html.twig',
        );
    }
```

By default, the "placeholder" block contains a loading indicator, but if you want a different placeholder in your frame you can override it in step 2

The turboFrame function accepts a few optional arguments:

- 'variables' =&gt; variables passed to the twig template
- 'loading' =&gt; sets the turbo frame attribute of the same name, \['lazy' | 'eager'\], 'eager' by default
- 'autoscroll' =&gt; sets the turbo frame attribute of the same name, false by default
- 'disabled' =&gt; sets the turbo frame attribute of the same name, false by default
- 'withContext' =&gt; when true the twig template can access its parent's variables, false by default

The default values above can be changed via the bundle config

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

912d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0cd1e0c3c438dab4b1f298c3072b34aa5026b94b5607f084d9f5801e42fe6c0f?d=identicon)[DRaichev](/maintainers/DRaichev)

---

Top Contributors

[![DRaichev](https://avatars.githubusercontent.com/u/52790026?v=4)](https://github.com/DRaichev "DRaichev (3 commits)")

### Embed Badge

![Health badge](/badges/raichev-twig-turbo-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/raichev-twig-turbo-bundle/health.svg)](https://phpackages.com/packages/raichev-twig-turbo-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k13](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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