zeliard91/twigstring-bundle
Symfony bundle for rendering Twig templates from strings at runtime. It provides a TwigString service and Twig extension, making it easy to evaluate dynamic or database-stored template snippets with Twig syntax inside your Symfony application.
zeliard91/twigstring-bundle is a Symfony2 bundle, not a Laravel package. It integrates through Symfony’s bundle/DI/kernel model, while Laravel uses service providers, facades, and Blade by default. Adopting the bundle directly would introduce an incompatible framework abstraction.Blade::render(), and for Twig it can be reproduced with twig/twig plus an ArrayLoader/string loader. The bundle itself adds little that cannot be implemented in a small, owned adapter.Blade::render($template, $data) meets the requirement. If Twig syntax is mandatory, add twig/twig directly, configure an ArrayLoader or custom string loader, and wrap it in a Laravel service provider. If an existing Symfony2 application already uses this bundle, keep it isolated there and plan to replace it during the Symfony upgrade.How can I help you explore Laravel packages today?