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)0714MITPHPPHP ^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 1mo ago

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

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

861d 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

[friendsofsymfony/ckeditor-bundle

Provides a CKEditor integration for your Symfony project.

53014.3M49](/packages/friendsofsymfony-ckeditor-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[a2lix/auto-form-bundle

Automate form building

873.8M11](/packages/a2lix-auto-form-bundle)[scheb/2fa

Two-factor authentication for Symfony applications (please use scheb/2fa-bundle to install)

578630.7k1](/packages/scheb-2fa)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

7310.3k29](/packages/open-dxp-opendxp)

PHPackages © 2026

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