{"id":86300,"library":"twig-twig","title":"Twig","description":"Twig, the flexible, fast, and secure template language for PHP","status":"active","version":"3.23.0","language":"php","source_language":null,"source_url":"https://github.com/twigphp/Twig","tags":["templating","twig","template-engine","symfony"],"install":[{"cmd":"composer require twig/twig","lang":"bash","label":"composer require"}],"dependencies":[],"imports":[{"symbol":"Environment","correct":"use Twig\\Environment;"}],"quickstart":{"code":"use Twig\\Environment;\nuse Twig\\Loader\\FilesystemLoader;\n\n$loader = new FilesystemLoader('/path/to/templates');\n$twig = new Environment($loader);\necho $twig->render('index.html', ['name' => 'World']);","lang":"php","description":"Render a template with Twig."},"warnings":[{"fix":"Use the raw filter or disable autoescape for specific blocks","message":"Autoescaping is enabled by default; may double-escape raw HTML","severity":"gotcha","affected_versions":">=1.0"}],"env_vars":null,"search_vec":"'engin':16 'fast':5 'flexibl':4 'languag':9 'php':11 'secur':7 'symfoni':17 'templat':8,12,15 'template-engin':14 'twig':1,2,13","created_at":"2026-06-19T07:59:08.232164+00:00","updated_at":"2026-06-19T07:59:08.232164+00:00","problems":[],"ecosystem":"packagist","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://twig.symfony.com","github":"https://github.com/twigphp/Twig","docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-19","next_check":"2026-12-16","install_tag":null}}