# symfony/templating

Provides all the tools needed to build any kind of template system

Repository: https://github.com/symfony/templating
Canonical: https://ross.abutalabs.com/products/symfony-templating
Homepage: https://symfony.com/templating
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component
Last push: 2026-06-05T06:25:52+00:00

## Health v2 (maintenance only)
Score: 65/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 86, release rhythm 17, longevity 100
- inputs: {"age_days": 5671, "days_push": 89, "days_rel": 398, "gap_med": 138.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1017, forks 19 (observed 2026-08-28T04:03:14.651068+00:00)

## What it is
The Symfony Templating component provides the infrastructure to load template files, monitor them for changes, and render them with a PHP-based template engine including escaping, blocks, and layouts. It is officially deprecated and should not be used in new projects.

## Use cases
- render php templates with layouts and blocks
- build a custom template system in php
- escape variables in php view files
- load templates from the filesystem in symfony
- maintain legacy symfony applications using PhpEngine
- separate templates into slots and layouts

## When to choose
- you maintain a legacy Symfony or PHP app already using PhpEngine
- you need a minimal PHP-native templating layer without Twig
- you are building a custom template engine and want reusable loader/parser infrastructure

## When to avoid
- starting a new project - the package is deprecated
- you can use Twig, the recommended Symfony template engine
- you need modern features, new functionality, or long-term guarantees

## Facets
- artifact type: library
- maturity: maintenance
- function: templating
- domain: web-development, backend, developer-tools
- platform: php
- tags: symfony-component, php-templates, deprecated, template-engine, layouts, escaping, web-server

## Member repositories
- symfony/templating (main) score 65

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:14.651068+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-30T07:11:15.108293+00:00, confidence not recorded.
  - readme: https://github.com/symfony/templating (fetched 2026-08-28T04:03:14.651068+00:00, sha b76d2e15871d)
  - homepage: https://symfony.com/templating (fetched 2026-08-29T13:10:07.071614+00:00, sha 363939704be1)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T13:10:07.080734+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T13:10:07.082726+00:00, sha a53ecdd1cdf8)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T13:10:07.084484+00:00, sha 22d469644e83)
- Data as of 2026-08-30T08:39:29.467469+00:00.
