friendsoftwig/twigcs
Twigcs is a checkstyle/linter for Twig templates, like phpcs for PHP. Scan template directories for coding standard violations, control exit codes via severity, and exclude paths. Install via Composer or PHIVE and run as a CLI tool.
Code Quality & Developer Experience (DX):
Symfony\Component\Console\Application method deprecations) that could block CI/CD pipelines or require manual patches, saving engineering time.Roadmap Prioritization:
Use Cases:
Adopt if:
Look Elsewhere if:
*"The latest TwigCS update (v6.6.1) resolves a critical compatibility issue with Symfony 8.0, ensuring our Twig linting tool works flawlessly in modern Laravel/Symfony stacks. This fix:
ROI Hook: 'For teams using Twig in Symfony 8/Laravel 10, this update prevents 10+ hours/year of debugging CI pipeline failures—at zero cost. It’s a no-brainer for projects planning infrastructure upgrades.'
Risk Mitigation: 'The fix is minimal (1 line), community-validated, and part of a growing contributor base (new contributor in this release).'
*"Symfony 8.0 Compatibility Fix (v6.6.1) resolves a fatal error when running TwigCS with Symfony Console v8.0+, which is now default in Laravel 10/Symfony 8+. Here’s how it impacts us:
Key Changes:
Application::add()).Action Items:
^6.6.1 or later to avoid regressions.Alternatives Considered:
Next Steps:
How can I help you explore Laravel packages today?