Ross ROSS = Recommend OSS · open-source software intelligence for agents

Twig

Twig, the flexible, fast, and secure template language for PHP observed · 2026-08-28

github.com/twigphp/Twig · homepage · PHP · BSD-3-Clause (permissive) observed · 2026-08-28

Health v2 · maintenance only

96/100

  • Activity 99
  • Release rhythm 91
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 5.0
  • age_days: 6174
  • days_rel: 61
  • days_push: 7
  • n_releases_24m: 7

Full methodology

Adoption not part of the score

8375 stars · 1287 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

Twig is a fast, secure, and flexible template engine and template language for PHP, inspired by Django and Jinja. It compiles templates to optimized PHP code, supports sandboxing of untrusted templates, and allows custom tags, filters, and DSLs.

Use cases

  • render html templates in a php application
  • separate presentation logic from php code
  • let users safely edit templates with sandbox mode
  • define custom template tags and filters
  • build themes for drupal or symfony projects

When to choose

  • you need a mature, secure templating layer for PHP
  • you want concise, designer-friendly template syntax with auto-escaping
  • you use Symfony, Drupal, or another framework supporting Twig

When to avoid

  • you are not working in PHP
  • you prefer plain PHP templates or a JS-based templating stack

Facets

library · maturity stable

templating web-framework web-development backend developer-tools php cross-platform template-engine template-language jinja-inspired autoescaping sandbox symfony web-server

4 sources

Member repositories

RepositoryRoleHealth v2
twigphp/Twigmain96
twigphp/Twig-extensionsplugin10

For agents

markdown · JSON · MCP: product_card(name="twigphp/Twig")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem