{"meta":{"name":"FindSoftware","page":"https://findsoftware.frbit.cloud/twig/","markdown":"https://findsoftware.frbit.cloud/twig.md","license":"https://creativecommons.org/licenses/by/4.0/","attribution":"FindSoftware, CC BY 4.0","note":"Attributes are recorded, never scored. An absent field means unknown, never zero and never bad."},"record":{"id":"twig","name":"Twig","urls":{"home":"https://twig.symfony.com/","repository":"https://github.com/twigphp/Twig","docs":"https://twig.symfony.com/doc/3.x/intro.html"},"category":["library"],"description":"Template engine for PHP that compiles templates to optimized PHP code and can run untrusted templates in a sandbox.","maintainer":"Twig Team","maintainerType":"community","firstRelease":2009,"hosting":["php"],"language":"php","runtime":["php"],"runtimeMin":"php 8.1","contentStore":null,"databases":null,"adminUi":null,"headlessApi":null,"templating":null,"i18n":null,"runsAs":null,"renderingModes":null,"installMethod":"composer","licenseModel":"open-source","license":"BSD-3-Clause","currentMajor":"3","latestReleaseDate":"2026-09-25T00:00:00.000Z","githubStargazers":8380,"contributors":401,"packagistDownloads":513258663,"npmWeeklyDownloads":null,"dependentRepos":131829,"dependentPackages":5847,"checkedAt":"2026-11-16T00:00:00.000Z","addedAt":"2026-11-16T00:00:00.000Z","sources":[{"field":"urls","url":"https://twig.symfony.com/","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://api.github.com/repos/twigphp/Twig","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://twig.symfony.com/doc/3.x/intro.html","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"firstRelease","url":"https://api.github.com/repos/twigphp/Twig/tags","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"maintainer","url":"https://raw.githubusercontent.com/twigphp/Twig/3.x/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"category","url":"https://raw.githubusercontent.com/twigphp/Twig/3.x/README.rst","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"language","url":"https://api.github.com/repos/twigphp/Twig","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtime","url":"https://github.com/twigphp/Twig/blob/v3.30.0/composer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtimeMin","url":"https://github.com/twigphp/Twig/blob/v3.30.0/composer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"installMethod","url":"https://twig.symfony.com/doc/3.x/intro.html","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"license","url":"https://github.com/twigphp/Twig/blob/v3.30.0/composer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"licenseModel","url":"https://github.com/twigphp/Twig/blob/v3.30.0/composer.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"currentMajor","url":"https://api.github.com/repos/twigphp/Twig/releases","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"latestReleaseDate","url":"https://api.github.com/repos/twigphp/Twig/releases","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"githubStargazers","url":"https://api.github.com/repos/twigphp/Twig","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"contributors","url":"https://api.github.com/repos/twigphp/Twig/contributors","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"packagistDownloads","url":"https://packagist.org/packages/twig/twig.json","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentPackages","url":"https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/twig%2Ftwig","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentRepos","url":"https://packages.ecosyste.ms/api/v1/registries/packagist.org/packages/twig%2Ftwig","checkedAt":"2026-11-16T00:00:00.000Z"}],"status":"active","ai":"authored"},"prose":"Twig is a template engine for PHP. A PHP application loads templates through a loader and an environment object, then renders a named template with an array of variables. Twig compiles each template to plain PHP code and keeps the compiled files in a cache directory, so the application runs compiled code rather than the template text.\n\nTwig can also evaluate templates written by users in a sandbox, where the developer decides which tags, filters and object methods the template may use. The [documentation](https://twig.symfony.com/doc/3.x/intro.html) introduces the basic API."}