{"adoption": {"forks": 1287, "observed_at": "2026-08-28T04:10:20.577945+00:00", "stars": 8375}, "canonical_url": "https://ross.abutalabs.com/products/twig", "card": {"archived": false, "artifact_type": "library", "description": "Twig, the flexible, fast, and secure template language for PHP", "domain": ["web-development", "backend", "developer-tools"], "enriched": true, "function": ["templating", "web-framework"], "health_score": 99, "homepage": "https://twig.symfony.com/", "language": "PHP", "license": "BSD-3-Clause", "license_family": "permissive", "maturity": "stable", "member_repos": ["twigphp/Twig", "twigphp/Twig-extensions"], "name": "Twig", "platform": ["php", "cross-platform"], "pushed_at": "2026-08-26T14:47:15+00:00", "repo": "twigphp/Twig", "stars": 8375, "tags": ["template-engine", "template-language", "jinja-inspired", "autoescaping", "sandbox", "symfony", "web-server"], "topics": ["twig", "php", "template-engine", "template-language", "templating"], "urls": [{"kind": "homepage", "url": "https://twig.symfony.com/"}, {"kind": "site_page", "url": "https://twig.symfony.com/doc/3.x"}, {"kind": "site_page", "url": "https://twig.symfony.com/doc/3.x/intro.html"}], "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"], "what_it_is": "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.", "when_to_avoid": ["you are not working in PHP", "you prefer plain PHP templates or a JS-based templating stack"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/repos/twigphp/Twig", "repo": "twigphp/Twig", "role": "main", "score": 96}, {"path": "/repos/twigphp/Twig-extensions", "repo": "twigphp/Twig-extensions", "role": "plugin", "score": 10}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:10:20.577945+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T17:27:32.626120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "11ebe57199823e25fa794dd3aada4545e2120e1ddf106365652a2dabe0b19d50", "fetched_at": "2026-08-28T04:10:20.577945+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twigphp/Twig"}, {"content_hash": "df46d453821a9f42f03e24d72123c2b77b0ae2be2a04e066db9234525ab6f894", "fetched_at": "2026-08-29T08:27:26.506151+00:00", "kind": "homepage", "missing": false, "url": "https://twig.symfony.com/"}, {"content_hash": "86ad8d1ffe103f77f1b8da26037352f3aba160ad0c5cc4943e462ead19541efe", "fetched_at": "2026-08-29T08:27:26.511356+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x"}, {"content_hash": "2885eb16020a443322bdf7302f7cae3482ca6af38635405d76fde277911b2cc5", "fetched_at": "2026-08-29T08:27:26.513250+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x/intro.html"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:10:20.577945+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T17:27:32.626120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "11ebe57199823e25fa794dd3aada4545e2120e1ddf106365652a2dabe0b19d50", "fetched_at": "2026-08-28T04:10:20.577945+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twigphp/Twig"}, {"content_hash": "df46d453821a9f42f03e24d72123c2b77b0ae2be2a04e066db9234525ab6f894", "fetched_at": "2026-08-29T08:27:26.506151+00:00", "kind": "homepage", "missing": false, "url": "https://twig.symfony.com/"}, {"content_hash": "86ad8d1ffe103f77f1b8da26037352f3aba160ad0c5cc4943e462ead19541efe", "fetched_at": "2026-08-29T08:27:26.511356+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x"}, {"content_hash": "2885eb16020a443322bdf7302f7cae3482ca6af38635405d76fde277911b2cc5", "fetched_at": "2026-08-29T08:27:26.513250+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x/intro.html"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T17:27:32.626120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "11ebe57199823e25fa794dd3aada4545e2120e1ddf106365652a2dabe0b19d50", "fetched_at": "2026-08-28T04:10:20.577945+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twigphp/Twig"}, {"content_hash": "df46d453821a9f42f03e24d72123c2b77b0ae2be2a04e066db9234525ab6f894", "fetched_at": "2026-08-29T08:27:26.506151+00:00", "kind": "homepage", "missing": false, "url": "https://twig.symfony.com/"}, {"content_hash": "86ad8d1ffe103f77f1b8da26037352f3aba160ad0c5cc4943e462ead19541efe", "fetched_at": "2026-08-29T08:27:26.511356+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x"}, {"content_hash": "2885eb16020a443322bdf7302f7cae3482ca6af38635405d76fde277911b2cc5", "fetched_at": "2026-08-29T08:27:26.513250+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x/intro.html"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:10:20.577945+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:10:20.577945+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:10:20.577945+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T17:27:32.626120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "11ebe57199823e25fa794dd3aada4545e2120e1ddf106365652a2dabe0b19d50", "fetched_at": "2026-08-28T04:10:20.577945+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twigphp/Twig"}, {"content_hash": "df46d453821a9f42f03e24d72123c2b77b0ae2be2a04e066db9234525ab6f894", "fetched_at": "2026-08-29T08:27:26.506151+00:00", "kind": "homepage", "missing": false, "url": "https://twig.symfony.com/"}, {"content_hash": "86ad8d1ffe103f77f1b8da26037352f3aba160ad0c5cc4943e462ead19541efe", "fetched_at": "2026-08-29T08:27:26.511356+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x"}, {"content_hash": "2885eb16020a443322bdf7302f7cae3482ca6af38635405d76fde277911b2cc5", "fetched_at": "2026-08-29T08:27:26.513250+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x/intro.html"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:10:20.577945+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:10:20.577945+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T17:27:32.626120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "11ebe57199823e25fa794dd3aada4545e2120e1ddf106365652a2dabe0b19d50", "fetched_at": "2026-08-28T04:10:20.577945+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twigphp/Twig"}, {"content_hash": "df46d453821a9f42f03e24d72123c2b77b0ae2be2a04e066db9234525ab6f894", "fetched_at": "2026-08-29T08:27:26.506151+00:00", "kind": "homepage", "missing": false, "url": "https://twig.symfony.com/"}, {"content_hash": "86ad8d1ffe103f77f1b8da26037352f3aba160ad0c5cc4943e462ead19541efe", "fetched_at": "2026-08-29T08:27:26.511356+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x"}, {"content_hash": "2885eb16020a443322bdf7302f7cae3482ca6af38635405d76fde277911b2cc5", "fetched_at": "2026-08-29T08:27:26.513250+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x/intro.html"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:10:20.577945+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:10:20.577945+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:10:20.577945+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T17:27:32.626120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "11ebe57199823e25fa794dd3aada4545e2120e1ddf106365652a2dabe0b19d50", "fetched_at": "2026-08-28T04:10:20.577945+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twigphp/Twig"}, {"content_hash": "df46d453821a9f42f03e24d72123c2b77b0ae2be2a04e066db9234525ab6f894", "fetched_at": "2026-08-29T08:27:26.506151+00:00", "kind": "homepage", "missing": false, "url": "https://twig.symfony.com/"}, {"content_hash": "86ad8d1ffe103f77f1b8da26037352f3aba160ad0c5cc4943e462ead19541efe", "fetched_at": "2026-08-29T08:27:26.511356+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x"}, {"content_hash": "2885eb16020a443322bdf7302f7cae3482ca6af38635405d76fde277911b2cc5", "fetched_at": "2026-08-29T08:27:26.513250+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x/intro.html"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:10:20.577945+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:10:20.577945+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T17:27:32.626120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "11ebe57199823e25fa794dd3aada4545e2120e1ddf106365652a2dabe0b19d50", "fetched_at": "2026-08-28T04:10:20.577945+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twigphp/Twig"}, {"content_hash": "df46d453821a9f42f03e24d72123c2b77b0ae2be2a04e066db9234525ab6f894", "fetched_at": "2026-08-29T08:27:26.506151+00:00", "kind": "homepage", "missing": false, "url": "https://twig.symfony.com/"}, {"content_hash": "86ad8d1ffe103f77f1b8da26037352f3aba160ad0c5cc4943e462ead19541efe", "fetched_at": "2026-08-29T08:27:26.511356+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x"}, {"content_hash": "2885eb16020a443322bdf7302f7cae3482ca6af38635405d76fde277911b2cc5", "fetched_at": "2026-08-29T08:27:26.513250+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x/intro.html"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T17:27:32.626120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "11ebe57199823e25fa794dd3aada4545e2120e1ddf106365652a2dabe0b19d50", "fetched_at": "2026-08-28T04:10:20.577945+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twigphp/Twig"}, {"content_hash": "df46d453821a9f42f03e24d72123c2b77b0ae2be2a04e066db9234525ab6f894", "fetched_at": "2026-08-29T08:27:26.506151+00:00", "kind": "homepage", "missing": false, "url": "https://twig.symfony.com/"}, {"content_hash": "86ad8d1ffe103f77f1b8da26037352f3aba160ad0c5cc4943e462ead19541efe", "fetched_at": "2026-08-29T08:27:26.511356+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x"}, {"content_hash": "2885eb16020a443322bdf7302f7cae3482ca6af38635405d76fde277911b2cc5", "fetched_at": "2026-08-29T08:27:26.513250+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x/intro.html"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T17:27:32.626120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "11ebe57199823e25fa794dd3aada4545e2120e1ddf106365652a2dabe0b19d50", "fetched_at": "2026-08-28T04:10:20.577945+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twigphp/Twig"}, {"content_hash": "df46d453821a9f42f03e24d72123c2b77b0ae2be2a04e066db9234525ab6f894", "fetched_at": "2026-08-29T08:27:26.506151+00:00", "kind": "homepage", "missing": false, "url": "https://twig.symfony.com/"}, {"content_hash": "86ad8d1ffe103f77f1b8da26037352f3aba160ad0c5cc4943e462ead19541efe", "fetched_at": "2026-08-29T08:27:26.511356+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x"}, {"content_hash": "2885eb16020a443322bdf7302f7cae3482ca6af38635405d76fde277911b2cc5", "fetched_at": "2026-08-29T08:27:26.513250+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x/intro.html"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T17:27:32.626120+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "11ebe57199823e25fa794dd3aada4545e2120e1ddf106365652a2dabe0b19d50", "fetched_at": "2026-08-28T04:10:20.577945+00:00", "kind": "readme", "missing": false, "url": "https://github.com/twigphp/Twig"}, {"content_hash": "df46d453821a9f42f03e24d72123c2b77b0ae2be2a04e066db9234525ab6f894", "fetched_at": "2026-08-29T08:27:26.506151+00:00", "kind": "homepage", "missing": false, "url": "https://twig.symfony.com/"}, {"content_hash": "86ad8d1ffe103f77f1b8da26037352f3aba160ad0c5cc4943e462ead19541efe", "fetched_at": "2026-08-29T08:27:26.511356+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x"}, {"content_hash": "2885eb16020a443322bdf7302f7cae3482ca6af38635405d76fde277911b2cc5", "fetched_at": "2026-08-29T08:27:26.513250+00:00", "kind": "site_page", "missing": false, "url": "https://twig.symfony.com/doc/3.x/intro.html"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 99, "longevity": 100, "rhythm": 91}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 6174, "days_push": 7, "days_rel": 61, "gap_med": 5.0, "n_releases_24m": 7}, "score": 96, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}