goetas/twital-bundle
A Symfony bundle that integrates Twital, an HTML-syntax extension for Twig. It lets you write templates using familiar HTML-like tags and attributes while keeping Twig’s features, and wires Twital into Symfony configuration and templating.
Architecture fit
goetas/twital-bundle remains a Symfony bundle, not a Laravel package. Release 1.6.0 changes nothing here: it adjusts the bundle's Symfony version constraints, not its integration surface. There is still no service provider, no facade, no publishable config — none of the Laravel integration surfaces exist.goetas/twital core: a compile-to-Twig DSL. It parses an attribute/namespace-driven template syntax (twital:if, twital:repeat, expression attributes) and emits Twig source that Twig then compiles. That layer is framework-agnostic and is what a Laravel team would actually consume.Integration feasibility
goetas/twital (not the bundle) and wrap it in a Laravel view engine or a custom Twig loader via rcrowe/twigbridge, compiling Twital → Twig source before Twig compiles it. Estimated 3–5 engineer-days for a spike, 2–3 weeks for production hardening (cache, error surfacing, config, tests).symfony/templating engine abstraction (removed in Symfony 5). That removes a hard legacy pin and is a genuine, if modest, maintenance signal.Technical risk
@hason), which is weak evidence that the repo accepts outside patches. That is a small positive for the fork-and-patch mitigation, not evidence of a support process or security-response capability.goetas/twital core. Twital manipulates Twig's parsing/compilation internals, exactly the area Twig has tightened across majors, and 1.6.0 says nothing about it.Key questions
symfony/templating or any Symfony version constraint that blocks modern PHP/Laravel?goetas/twital core support today, and is there a compatibility matrix in CI? (Unchanged and now the highest-priority unknown, since 1.6.0 did not address it.)@hason contribution indicate durable outside involvement or a one-off?Stack fit
rcrowe/twigbridge (or a purpose-built view engine), with goetas/twital core as a pre-compilation layer. The Symfony bundle remains excluded from the dependency graph — 1.6.0 removes a reason to rule the bundle out on dependency grounds, but not a reason to include it.i18n/macro patterns before adding a compiler layer.Migration path
TwitalLoader that wraps the existing Twig loader chain: read source → Twital compile → hand Twig source to Twig's normal cache. No changes to the render call sites.Compatibility
symfony/templating question is closed; Twig and PHP constraints remain the gating compatibility check and are still unverified for the core package.composer.json; treat any Twig minor bump as a change requiring a template-render regression suite.php artisan view:clear remains the single cache-invalidation lever.@ directives, distinct file extensions to keep IDE and tooling unambiguous.Sequencing
goetas/twital core on the target Laravel/PHP/Twig versions; render one nontrivial template end-to-end; record every failure. This step is unchanged — 1.6.0 did not shorten it, because it did not touch the package under test.TwitalLoader, config, cache warm-up command, error normalization into Laravel's exception handler.Maintenance
twig/twig against a low-adoption compiler is an unmonitored production risk.Support
@hason PR is mild evidence that upstream accepts fixes — worth testing early with a trivial patch to confirm the fork path is viable before you need it under pressure.Scaling
Failure modes
Ramp-up
Bottom line for the roadmap: 1.6.0 is a modest, welcome maintenance release that closes the symfony/templating blocker and shows the bundle accepts outside contributions — but it is bundle-only, stops at an end-of-life Symfony 5, and says nothing about the goetas/twital core compiler that a Laravel team would actually depend on. The bundle should still be rejected outright for a Laravel codebase; the core compiler is only worth a bounded spike if a concrete XML-authoring requirement exists. Default recommendation remains do not adopt, with the time-boxed compatibility spike (now focused squarely on Twig 3 / PHP 8.2+ / core-compiler viability) as the only funded next step.
How can I help you explore Laravel packages today?