{"library":"twig-to-phtml","type":"library","category":null,"description":"A Twig to PHTML transpiler that converts Twig template syntax into PHP (PHTML) code. Version 0.3.4 is the current stable release, with infrequent updates. It differs from alternatives like twig2php by focusing on direct transpilation without runtime dependencies. Designed for build-time use in PHP projects migrating from Twig to native PHP templates. Supports basic Twig constructs like variable output, loops, and conditionals.","language":"javascript","status":"active","version":"0.3.4","tags":["javascript","twig","phtml"],"last_verified":"Fri May 01","install":[{"cmd":"npm install twig-to-phtml","imports":["import { Transpiler } from 'twig-to-phtml'","const { Transpiler } = require('twig-to-phtml')","import type { Transpiler } from 'twig-to-phtml'"]},{"cmd":"yarn add twig-to-phtml","imports":[]},{"cmd":"pnpm add twig-to-phtml","imports":[]}],"homepage":null,"github":"https://github.com/NightlyCommit/twig-to-phtml","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/twig-to-phtml","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}