NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #261 most downloaded on Packagist
Provides a tight integration of Twig into the Symfony full-stack framework
Latest stable
v8.1.9
Last release 16 days ago
06 Nov 2026
Ships fairly regularly
a new release about every 3 weeks
Rarely documented
notes for 3 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
627 releases · first in 2011
Drag across the ruler to compare, or tap a release to open it.
Changelog ( v8.2.0-BETA1...v8.2.0-BETA2 )
Changelog (v8.2.0-BETA1...v8.2.0-BETA2)
routing.loader a DelegatingLoader in apps that use TwigBundle (@nicolas-grekas)Changelog ( v8.1.9...v8.2.0-BETA1 )
Changelog (v8.1.9...v8.2.0-BETA1)
command.invocation and migrate command examples (@nicolas-grekas)HtmlTranslator and the trans_html filter (@Kocal)sign_url filter to sign absolute URLs (@nicolas-grekas)Your coding agent can read these notes before it upgrades. Set up the MCP server →
bug #66741 Sort the templates listed by TemplateIterator ( @nicolas-grekas )
Changelog (v8.1.7...v8.1.9)
bug #66003 Escape percent signs in kernel path parameters ( @nicolas-grekas )
Changelog (v8.1.2...v8.1.7)
minor #64816 Allow Twig 4 ( @xabbuh )
Changelog (v8.1.0...v8.1.2)
bug #64102 Remove usage of Kernel::VERSION (@fabpot)
Changelog (https://github.com/symfony/twig-bundle/compare/v8.1.0-BETA3...v8.1.0)
Kernel::VERSION (@fabpot)twig.safe_class resource tag to register safe classes for Twig's escaperbug #64301 Various fixes and hardenings (@nicolas-grekas)
Changelog (https://github.com/symfony/twig-bundle/compare/v8.1.0-BETA1...v8.1.0-BETA3)
feature #63745 Deprecate Bundle::registerCommands() (@derrabus)
Changelog (https://github.com/symfony/twig-bundle/compare/v8.0.3...v8.1.0-BETA1)
twig.safe_class resource tag to register safe classes for the escaper (@GromNaN)Bundle::registerCommands() (@derrabus)Extension class (@xabbuh)Changelog ( v8.0.14...v8.0.15 )
Changelog (v8.0.14...v8.0.15)
bug #64102 Remove usage of Kernel::VERSION (@fabpot)
Changelog (https://github.com/symfony/twig-bundle/compare/v8.0.9...v8.0.14)
Kernel::VERSION (@fabpot)Changelog (https://github.com/symfony/twig-bundle/compare/v8.0.7...v8.0.8) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v8.0.7...v8.0.8)
Changelog (https://github.com/symfony/twig-bundle/compare/v8.0.3...v8.0.4) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v8.0.3...v8.0.4)
bug symfony/symfony#62810 [TwigBundle] Align TemplateIterator handling of @! original bundle templates with TwigExtension (@mbessolov)
Changelog (https://github.com/symfony/twig-bundle/compare/v8.0.2...v8.0.3)
exception_controller twig setting (@stof)Changelog (https://github.com/symfony/twig-bundle/compare/v8.0.0-RC3...v8.0.0) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v8.0.0-RC3...v8.0.0)
TemplateCacheWarmer class finalbase_template_class config optionChangelog (https://github.com/symfony/twig-bundle/compare/v8.0.0-BETA2...v8.0.0-RC1) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v8.0.0-BETA2...v8.0.0-RC1)
feature symfony/symfony#61919 [DependencyInjection] Deprecate ExtensionInterface::getXsdValidationBasePath() and getNamespace() (@nicolas-grekas)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.4...v8.0.0-BETA1)
ExtensionInterface::getXsdValidationBasePath() and getNamespace() (@nicolas-grekas)ArrayNodeDefinition::acceptAndWrap() to list alternative types that should be accepted and wrapped in an array (@nicolas-grekas)$singular to NodeBuilder::arrayNode() to decouple plurals/singulars from XML (@nicolas-grekas)Changelog ( v7.4.19...v7.4.21 )
Changelog (v7.4.19...v7.4.21)
Changelog ( v7.4.15...v7.4.19 )
Changelog (v7.4.15...v7.4.19)
minor #64816 Allow Twig 4 (@xabbuh)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.4.14...v7.4.15)
bug #64102 Remove usage of Kernel::VERSION (@fabpot)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.4.9...v7.4.14)
Kernel::VERSION (@fabpot)Changelog (https://github.com/symfony/twig-bundle/compare/v7.4.7...v7.4.8) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.4.7...v7.4.8)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.4.3...v7.4.4) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.4.3...v7.4.4)
bug symfony/symfony#62810 [TwigBundle] Align TemplateIterator handling of @! original bundle templates with TwigExtension (@mbessolov)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.4.2...v7.4.3)
exception_controller twig setting (@stof)Changelog (https://github.com/symfony/twig-bundle/compare/v7.4.0-RC3...v7.4.0) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.4.0-RC3...v7.4.0)
exception_controller config to null. This was a legacy opt-out of a deprecation that is a no-op since Symfony 5.0. Remove that setting entirely instead.Changelog (https://github.com/symfony/twig-bundle/compare/v7.4.0-BETA2...v7.4.0-RC1) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.4.0-BETA2...v7.4.0-RC1)
feature symfony/symfony#61919 [DependencyInjection] Deprecate ExtensionInterface::getXsdValidationBasePath() and getNamespace() (@nicolas-grekas)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.4...v7.4.0-BETA1)
ExtensionInterface::getXsdValidationBasePath() and getNamespace() (@nicolas-grekas)ArrayNodeDefinition::acceptAndWrap() to list alternative types that should be accepted and wrapped in an array (@nicolas-grekas)$singular to NodeBuilder::arrayNode() to decouple plurals/singulars from XML (@nicolas-grekas)Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.9...v7.3.10) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.9...v7.3.10)
bug symfony/symfony#62810 [TwigBundle] Align TemplateIterator handling of @! original bundle templates with TwigExtension (@mbessolov)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.8...v7.3.9)
bug symfony/symfony#61714 [SecurityBundle] Fix semantic configuration for singulars/plurals in XML (@nicolas-grekas)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.3...v7.3.4)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.1...v7.3.2) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.1...v7.3.2)
bug symfony/symfony#60859 [TwigBundle] fix preload unlinked class BinaryOperatorExpressionParser (@Grummfy)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.0...v7.3.1)
BinaryOperatorExpressionParser (@Grummfy)Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.0-RC1...v7.3.0) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.0-RC1...v7.3.0)
#[AsTwigFilter], #[AsTwigFunction] and #[AsTwigTest] attributes
to configure extensions on runtime classestwig validatorChainCache to store warmed-up cache in kernel.build_dir and runtime cache in kernel.cache_dirTemplateCacheWarmer use kernel.build_dir instead of kernel.cache_dirChangelog (https://github.com/symfony/twig-bundle/compare/v7.3.0-BETA2...v7.3.0-RC1) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.0-BETA2...v7.3.0-RC1)
feature symfony/symfony#54384 [TwigBundle] Use kernel.build_dir to store the templates known at build time (@Okhoshi)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.3.0-BETA1...v7.3.0-BETA2)
kernel.build_dir to store the templates known at build time (@Okhoshi)feature symfony/symfony#59762 [Config] Add NodeDefinition::docUrl() (@alexandre-daubois)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.2.6...v7.3.0-BETA1)
NodeDefinition::docUrl() (@alexandre-daubois)#[AsTwigFilter], #[AsTwigFunction] and #[AsTwigTest] attributes to configure runtime extensions (@GromNaN)Changelog (https://github.com/symfony/twig-bundle/compare/v7.2.8...v7.2.9) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.2.8...v7.2.9)
bug symfony/symfony#60859 [TwigBundle] fix preload unlinked class BinaryOperatorExpressionParser (@Grummfy)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.2.7...v7.2.8)
BinaryOperatorExpressionParser (@Grummfy)Changelog (https://github.com/symfony/twig-bundle/compare/v7.2.0-RC1...v7.2.0) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.2.0-RC1...v7.2.0)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.2.0-BETA2...v7.2.0-RC1) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.2.0-BETA2...v7.2.0-RC1)
feature symfony/symfony#54593 [PhpUnitBridge] Add ExpectUserDeprecationMessageTrait (@derrabus)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.1.6...v7.2.0-BETA1)
ExpectUserDeprecationMessageTrait (@derrabus)Changelog (https://github.com/symfony/twig-bundle/compare/v7.1.5...v7.1.6) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.1.5...v7.1.6)
bug symfony/symfony#58198 [TwigBundle] Add support for resetting globals between HTTP requests (@fabpot)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.1.4...v7.1.5)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.1.0...v7.1.1) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.1.0...v7.1.1)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.1.0-RC1...v7.1.0) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.1.0-RC1...v7.1.0)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.1.0-BETA1...v7.1.0-RC1) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.1.0-BETA1...v7.1.0-RC1)
feature symfony/symfony#54657 [TwigBundle] Deprecate base_template_class option (@Steveb-p)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.7...v7.1.0-BETA1)
base_template_class option (@Steveb-p)emojify twig filter (@lyrixx)WarmableInterface as final (@xabbuh)Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.7...v7.0.8) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.7...v7.0.8)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.6...v7.0.7) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.6...v7.0.7)
bug symfony/symfony#53913 [TwigBridge] Fix compat with Twig v3.9 (@nicolas-grekas)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.3...v7.0.4)
bug symfony/symfony#53582 [TwigBundle] Fix configuration when "paths" is null (@smnandre)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.2...v7.0.3)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.0-RC2...v7.0.0) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.0-RC2...v7.0.0)
Twig_Environment autowiring alias, use Twig\Environment insteadtwig.autoescape; create a class that implements your escaping strategy
(check FileExtensionEscapingStrategy::guess() for inspiration) and reference it using
the twig.autoescape_service option insteadChangelog (https://github.com/symfony/twig-bundle/compare/v7.0.0-RC1...v7.0.0-RC2) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.0-RC1...v7.0.0-RC2)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.0-BETA3...v7.0.0-RC1) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.0-BETA3...v7.0.0-RC1)
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.0-BETA2...v7.0.0-BETA3) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v7.0.0-BETA2...v7.0.0-BETA3)
feature symfony/symfony#51976 [Workflow] Revert deprecation about Registry (@lyrixx)
Changelog (https://github.com/symfony/twig-bundle/compare/v6.3.6...v7.0.0-BETA1)
$buildDir argument to WarmableInterface::warmup to warm read-only artefacts in build_dir (@Okhoshi)AppVariable::getEnabledLocales() (@jmsche)TemplatedEmail::locale() to set the locale for the email rendering (@alexander-schranz)autoescape_service_method option when autoescape_service is set to an invokable service id (@nicolas-grekas)Changelog ( v6.4.46...v6.4.48 )
Changelog (v6.4.46...v6.4.48)
Changelog ( v6.4.43...v6.4.46 )
Changelog (v6.4.43...v6.4.46)
minor #64816 Allow Twig 4 (@xabbuh)
Changelog (https://github.com/symfony/twig-bundle/compare/v6.4.32...v6.4.43)
Changelog (https://github.com/symfony/twig-bundle/compare/v6.4.31...v6.4.32) * no significant changes
Changelog (https://github.com/symfony/twig-bundle/compare/v6.4.31...v6.4.32)
bug symfony/symfony#62810 [TwigBundle] Align TemplateIterator handling of @! original bundle templates with TwigExtension (@mbessolov)
Changelog (https://github.com/symfony/twig-bundle/compare/v6.4.30...v6.4.31)
One column per quarter.