NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2028 most downloaded on Packagist
Checkstyle automation for Twig
Latest stable
v6.6.1
Last release 10 months ago
23 Jan 2026
Release timing varies
gaps range from 9 days to 2.0 years
Nearly every release is documented
notes for 31 of 32 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
32 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
<!-- Release notes generated using configuration in .github/release.yaml at main -->
<!-- Release notes generated using configuration in .github/release.yaml at main -->
Full Changelog: https://github.com/friendsoftwig/twigcs/compare/v6.6.0...v6.6.1
<!-- Release notes generated using configuration in .github/release.yaml at main -->
<!-- Release notes generated using configuration in .github/release.yaml at main -->
Full Changelog: https://github.com/friendsoftwig/twigcs/compare/v6.5.0...v6.6.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
<!-- Release notes generated using configuration in .github/release.yaml at main -->
<!-- Release notes generated using configuration in .github/release.yaml at main -->
Full Changelog: https://github.com/friendsoftwig/twigcs/compare/6.5.0...v6.5.0
<!-- Release notes generated using configuration in .github/release.yaml at 6.5.0 -->
vimeo/psalm to phpstan/phpstan by @localheinz in https://github.com/friendsoftwig/twigcs/pull/342Full Changelog: https://github.com/friendsoftwig/twigcs/compare/6.4.0...6.5.0
For a full diff see [6.4.0...6.5.0][6.4.0...6.5.0].
<!-- Release notes generated using configuration in .github/release.yaml at 6.4.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 6.4.0 -->
Full Changelog: https://github.com/friendsoftwig/twigcs/compare/6.3.0...6.4.0
For a full diff see [6.3.0...6.4.0][6.3.0...6.4.0].
symfony/console:^7.0.0, symfony/filesystem:^7.0.0, and symfony/finder:^7.0.0 ([#314]), by [@kristoftorfs]<!-- Release notes generated using configuration in .github/release.yaml at 6.3.0 -->
<!-- Release notes generated using configuration in .github/release.yaml at 6.3.0 -->
friendsofphp/php-cs-fixer by @localheinz in https://github.com/friendsoftwig/twigcs/pull/306vimeo/psalm by @localheinz in https://github.com/friendsoftwig/twigcs/pull/307findUnusedBaselineEntry option for vimeo/psalm by @localheinz in https://github.com/friendsoftwig/twigcs/pull/308CHANGELOG.md by @localheinz in https://github.com/friendsoftwig/twigcs/pull/309Full Changelog: https://github.com/friendsoftwig/twigcs/compare/6.2.0...6.3.0
For a full diff see [6.2.0...6.3.0][6.2.0...6.3.0].
Enhancement: Allow dependabot to update composer development dependencies by @localheinz in https://github.com/friendsoftwig/twigcs/pull/266
CHANGELOG.md by @localheinz in https://github.com/friendsoftwig/twigcs/pull/272setUp() by @localheinz in https://github.com/friendsoftwig/twigcs/pull/274Full Changelog: https://github.com/friendsoftwig/twigcs/compare/v6.1.0...6.2.0
For a full diff see [6.1.0...6.2.0][6.1.0...6.2.0].
Added gitlab reporter by @frankdekker in https://github.com/friendsoftwig/twigcs/pull/243
.php extension by @yguedidi in https://github.com/friendsoftwig/twigcs/pull/247Full Changelog: https://github.com/friendsoftwig/twigcs/compare/v6.0.0...v6.1.0
.php extension by @yguedidi in #247Full Changelog: v6.0.0...v6.1.0
Fix PHP 8.1 deprecation errors (@cedric-anne)
Team changes @localheinz @Ciloe and @alexmart are now maintainers on the project.
BC Breaks
master branch has been moved to main (@OwlyCode)New features
Bugfixes
Fix PHP 8.1 deprecation errors by @cedric-anne in https://github.com/friendsoftwig/twigcs/pull/187
.gitattributes by @localheinz in https://github.com/friendsoftwig/twigcs/pull/198phpunit with shivammathur/setup-php by @localheinz in https://github.com/friendsoftwig/twigcs/pull/200bin directory by @localheinz in https://github.com/friendsoftwig/twigcs/pull/214.gitignore by @localheinz in https://github.com/friendsoftwig/twigcs/pull/215friendsofphp/php-cs-fixer by @localheinz in https://github.com/friendsoftwig/twigcs/pull/216--ansi option by @localheinz in https://github.com/friendsoftwig/twigcs/pull/218.editorconfig by @localheinz in https://github.com/friendsoftwig/twigcs/pull/222composer.json by @localheinz in https://github.com/friendsoftwig/twigcs/pull/224maglnet/composer-require-checker by @localheinz in https://github.com/friendsoftwig/twigcs/pull/223phpunit.xsd as installed with composer by @localheinz in https://github.com/friendsoftwig/twigcs/pull/225phpunit/phpunit:^9.5.20 by @localheinz in https://github.com/friendsoftwig/twigcs/pull/229vimeo/psalm by @localheinz in https://github.com/friendsoftwig/twigcs/pull/232CONTRIBUTING.md by @localheinz in https://github.com/friendsoftwig/twigcs/pull/233Makefile by @localheinz in https://github.com/friendsoftwig/twigcs/pull/234humbug/box by @localheinz in https://github.com/friendsoftwig/twigcs/pull/235box.json.dist before compiling Phar by @localheinz in https://github.com/friendsoftwig/twigcs/pull/237phpunit/phpunit in verbose mode by @localheinz in https://github.com/friendsoftwig/twigcs/pull/238Full Changelog: https://github.com/friendsoftwig/twigcs/compare/v5.1.0...5.2.0
Phars are now signed (suggested by @prudloff-insite, implemented by @OwlyCode)
New features:
exclude option now supports both files and directories (@jklmnop)Bugfixes:
Added PHP 8 support, versions older than 7.3 are no longer supported. (@Ciloe)
Breaking changes:
exclude option now requires a value, and the throw-syntax-error option requires none. (@stof)Added rules to prevent usage of configurable forbidden functions (@Ciloe)
New features:
<=> operator support (@Ciloe)Fixes:
File based configuration (@c33s, @OwlyCode)
New features:
Fixes:
Fixes #99 : The trailing space rule places the violations at the wrong line and column.
Fixes #99 : The trailing space rule places the violations at the wrong line and column.
Fixes a compatibility issue with twig 3.0
Fixes a compatibility issue with twig 3.0
This version adds support for Symfony 5 and Twig 3 for twigcs 3.X used as a dependency. Please note that the minimal requirements were bumped to twig
This version adds support for Symfony 5 and Twig 3 for twigcs 3.X used as a dependency. Please note that the minimal requirements were bumped to twig 1.41 or twig 2.10. Please use the .phar if you are using an older version of twig.
Fixed block variable declaration breaking unused variables detection
Fixed BC break when using Twig 1.X
Fixed more unused variables and macros detection cases
Upgraded PHPUnit by @OwlyCode in https://github.com/friendsoftwig/twigcs/pull/41
Full Changelog: https://github.com/friendsoftwig/twigcs/compare/v3.0.1...v3.1.0
For a full diff see [3.0.0...3.0.1][3.0.0...3.0.1].
For a full diff see [3.0.0...3.0.1][3.0.0...3.0.1].
Made the dependency requirements more suitable by @benatespina in https://github.com/friendsoftwig/twigcs/pull/32
Full Changelog: https://github.com/friendsoftwig/twigcs/compare/v2.1.0...v3.0.0
For a full diff see [2.0.3...2.1.0][2.0.3...2.1.0].
For a full diff see [2.0.3...2.1.0][2.0.3...2.1.0].
For a full diff see [2.0.2...2.0.3][2.0.2...2.0.3].
For a full diff see [2.0.2...2.0.3][2.0.2...2.0.3].
For a full diff see [2.0.1...2.0.2][2.0.1...2.0.2].
For a full diff see [2.0.1...2.0.2][2.0.1...2.0.2].
For a full diff see [2.0.0...2.0.1][2.0.0...2.0.1].
For a full diff see [2.0.0...2.0.1][2.0.0...2.0.1].
For a full diff see [1.0.0...2.0.0][1.0.0...2.0.0].
For a full diff see [1.0.0...2.0.0][1.0.0...2.0.0].
For a full diff see [b139b06...1.0.0][b139b06...1.0.0].
For a full diff see b139b06...1.0.0.
Nothing published for this version
Added a JSON reporter (@laurentmuller)
New features:
Fixes:
Fixes #99: The trailing space rule places the violations at the wrong line and column. Fixes #100: Invalid spacing around the .. operator
Fixes #99: The trailing space rule places the violations at the wrong line and column.
Fixes #100: Invalid spacing around the .. operator
This is the beta of the 4.0 version. It features a complete rewrite of the way spaces are handled.
This is the beta of the 4.0 version. It features a complete rewrite of the way spaces are handled.
Changelog:
See the upgrade guide if you come from 3.1 or older versions.
One column per quarter.