NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #834 most downloaded on Packagist
A tool to automatically fix Twig code style
Latest stable
4.1.1
Last release 2 months ago
08 Sep 2026
Ships fairly regularly
a new release about every 5 weeks
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
5 years old
77 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
fix(tokenizer): parse spread operator as unary inside a hash by @clussiana in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/464
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/4.1.0...4.1.1
Tokenize doc comment by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/462
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/4.0.2...4.1.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix upgrade guide diffs for 2.x to 3.0 by @christopherp309 in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/456
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/4.0.1...4.0.2
Fix parsing of unary operator by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/455
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/4.0.0...4.0.1
Fix rule name in doc by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/444
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.14.0...4.0.0
Stop using deprecated method by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/435
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.13.0...3.14.0
Prefer addCommands by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/427
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.12.0...3.13.0
Remove unnecessary requirement by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/417
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.11.0...3.12.0
Delete deprecated issue template by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/406
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.10.0...3.11.0
Add Symfony 8 support by @smnandre in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/391
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.9.0...3.10.0
Introduce TypeNameType token by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/387
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.8.1...3.9.0
Update doc about CompactHashRule by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/379
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.8.0...3.8.1
Add compactHashRule to Twig-CS-Fixer standard by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/368
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.7.1...3.8.0
Ignore BC for coverage by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/370
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.7.0...3.7.1
Introduce CompactHashRule by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/366
TwigCsFixer\Rules\String\HashQuoteRule has been renamed TwigCsFixer\Rules\Literal\HashQuoteRuleTwigCsFixer\Rules\String\SingleQuoteRule has been renamed TwigCsFixer\Rules\Literal\SingleQuoteRuleFull Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.6.1...3.7.0
Fix Empty token list by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/364
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.6.0...3.6.1
Create cache dir if non existing by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/351
IncludeFunctionRule description by @jdreesen in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/354Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.5.1...3.6.0
Bump Phpstan and rector by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/343
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.5.0...3.5.1
Add support for inline comment by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/341
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.4.0...3.5.0
Fix tests by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/331
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.3.1...3.4.0
Fix TrailingCommaMultiLine when there is no elements by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/326
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.3.0...3.3.1
Update .gitattributes by @ruudk in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/324
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.2.0...3.3.0
Move AbstractRuleTestCase and TestHelper to src by @zacharylund in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/317
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.1.0...3.2.0
Fix deprecation in ForbiddenFilterRule.php by @ruudk in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/310
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.0.2...3.1.0
Introduce token documentation by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/301
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.0.1...3.0.2
Remove warning about non stable 3.x by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/297
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.0.0...3.0.1
Create SECURITY.md by @feuerwagen in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/263
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.12.1...3.0.0
Compress PHAR by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/279
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.0.0-rc-2...3.0.0-rc-3
doc: improve how this tool is referred to by @alexislefebvre in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/275
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/3.0.0-rc-1...3.0.0-rc-2
Create SECURITY.md by @feuerwagen in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/263
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.12.1...3.0.0-rc-1
fix(rules): revert TrailingCommaMultiLineRule by @thislg in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/259
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.12.0...2.12.1
Introduce Trailing Comma MultiLine rule by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/239
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.11.0...2.12.0
Allow to use tab for indentation by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/236
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.10.1...2.11.0
Update verbosity level of cache notice to prevent inclusion in output report by @tobias-93 in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/234
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.10.0...2.10.1
Fix incorrect add / remove rules by @marsender in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/227
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.9.0...2.10.0
Add override Standard method by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/216
IncludeFunctionRule in default standard fixer by @94noni in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/218Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.8.1...2.9.0
Avoid duplicated rules when adding multiple standards by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/215
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.8.0...2.8.1
doc: Use better formating by @lyrixx in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/210
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.7.0...2.8.0
Add config for PunctuationSpacingRule by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/208
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.6.0...2.7.0
Avoid infinite loop with mixed EOL by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/201
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.5.1...2.6.0
Allow _ prefix in symfony coding standard by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/199
_ prefix in symfony coding standard by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/199Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.5.0...2.5.1
Add link in doc about non fixable rules by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/194
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.4.4...2.5.0
Rely on symfony/filesystem in FileHelper by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/191
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.4.3...2.4.4
Refacto FileHelper to have consistent behavior with absolute and relative paths by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.4.2...2.4.3
Improve support of relative path by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/188
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.4.1...2.4.2
Fix doc by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/183
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.4.0...2.4.1
Remove 'ordered_imports' rule from .php-cs-fixer.php by @smnandre in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/174
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.3.0...2.4.0
Add branch to codecov yaml by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/171
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.2.0...2.3.0
Add rule about file and directory by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/165
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.1.0...2.2.0
Update dependencies by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/163
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/2.0.0...2.1.0
Allow to implement more reporters by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/148
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/1.6.0...2.0.0
Allow to implement more reporters by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/148
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/1.6.0...2.0.0-rc-1
Refacto by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/137
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/1.5.0...1.6.0
Handle TwigComponent props tag by @smnandre in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/136
props tag by @smnandre in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/136Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/1.4.0...1.5.0
Solve static analysis errors by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/131
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/1.3.1...1.4.0
Add composer require checker to .gitattributes by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/130
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/1.3.0...1.3.1
Add first verbosity message by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/129
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/1.2.0...1.3.0
Bump rector by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/126
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/1.1.1...1.2.0
Prevent writing unchanged files when fixing by @rvanvelzen in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/125
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/1.1.0...1.1.1
Bump dependencies by @VincentLanglet in https://github.com/VincentLanglet/Twig-CS-Fixer/pull/122
Full Changelog: https://github.com/VincentLanglet/Twig-CS-Fixer/compare/1.0.0...1.1.0
One column per quarter.