# symfony/twig-bridge

Provides integration for Twig with various Symfony components

Repository: https://github.com/symfony/twig-bridge
Canonical: https://ross.abutalabs.com/products/twig-bridge
Homepage: https://symfony.com/twig-bridge
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component
Last push: 2026-08-22T13:46:23+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 5630, "days_push": 11, "days_rel": 11, "gap_med": 0, "n_releases_24m": 74}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2506, forks 47 (observed 2026-08-28T04:06:57.145751+00:00)

## What it is
The Symfony Twig Bridge provides integration between the Twig template engine and various Symfony components. It is an official Symfony component that connects templating with the framework's features.

## Use cases
- integrate twig templates with symfony
- render symfony forms in twig
- use twig with symfony security and translation
- add twig extensions for symfony components
- connect templating to symfony framework

## When to choose
- you use Symfony and want Twig as your template engine
- you need Twig helpers for Symfony forms, security, or routing
- you want official, well-maintained Symfony-Twig integration

## When to avoid
- you use Symfony without Twig templating
- your project does not use Symfony
- you need a standalone template engine without framework integration

## Facets
- artifact type: library
- maturity: stable
- function: templating, plugin-system, middleware
- domain: web-development, backend, developer-tools
- platform: php
- tags: symfony, twig, template-engine, integration, web-server

## Member repositories
- symfony/twig-bridge (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:57.145751+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:26:43.525969+00:00, confidence not recorded.
  - readme: https://github.com/symfony/twig-bridge (fetched 2026-08-28T04:06:57.145751+00:00, sha 759e12390589)
- Data as of 2026-08-30T08:39:29.467469+00:00.
