Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Twigcs Laravel Package

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.

View on GitHub
Deep Wiki
Context7
v6.6.1

What's Changed

New Contributors

Full Changelog: https://github.com/friendsoftwig/twigcs/compare/v6.6.0...v6.6.1

v6.5.0

What's Changed

New Contributors

Full Changelog: https://github.com/friendsoftwig/twigcs/compare/6.5.0...v6.5.0

6.5.0

What's Changed

Full Changelog: https://github.com/friendsoftwig/twigcs/compare/6.4.0...6.5.0

6.4.0
6.3.0

What's Changed

New Contributors

Full Changelog: https://github.com/friendsoftwig/twigcs/compare/6.2.0...6.3.0

6.2.0

What's Changed

Full Changelog: https://github.com/friendsoftwig/twigcs/compare/v6.1.0...6.2.0

v3.1.0
5.2.0

What's Changed

New Contributors

Full Changelog: https://github.com/friendsoftwig/twigcs/compare/v5.1.0...5.2.0

v3.0.0

What's Changed

New Contributors

Full Changelog: https://github.com/friendsoftwig/twigcs/compare/v2.1.0...v3.0.0

v6.1.0

Added

Fixed

New Contributors

Full Changelog: https://github.com/friendsoftwig/twigcs/compare/v6.0.0...v6.1.0

v6.0.0

Team changes @localheinz @Ciloe and @alexmart are now maintainers on the project.

BC Breaks

  • Remove support for php 7.3 and earlier (@stephanvierkant)
  • Remove support for Symfony 3 and earlier (@stephanvierkant)
  • Mark the values of the display and severity options as required (@stof)
  • master branch has been moved to main (@OwlyCode)

New features

Bugfixes

v5.1.0

New features:

  • Phars are now signed (suggested by @prudloff-insite, implemented by @OwlyCode)
  • The exclude option now supports both files and directories (@jklmnop)
  • Allowed configuring display from config file and honor config file options (@franmomu)

Bugfixes:

  • Fixed wrong handling of hashes with double quoted keys (@cedric-anne)
  • Fixed RulesetConfigurator::setNamedArgsSpacingPattern() arg type (@cedric-anne)
  • Fixed false positive when a variable is used in an include (@franmomu)
v5.0.0

Breaking changes:

  • Added PHP 8 support, versions older than 7.3 are no longer supported. (@Ciloe)
  • The exclude option now requires a value, and the throw-syntax-error option requires none. (@stof)
v4.1.0

New features:

  • Added rules to prevent usage of configurable forbidden functions (@Ciloe)
  • Added <=> operator support (@Ciloe)

Fixes:

  • Fixed comparison inside function calls generating false positives (@Ciloe)
  • Fixed comparison inside parenthesis generating false positives (@Ciloe)
v4.0.0

New features:

Fixes:

  • Fixed bitwise operators (@Dodenis)
  • Fixed variable character case detection in "for" tags (@Dodenis)
  • Fixed unused variables or macros not detected in elseif (@Dodenis)
  • Fixed // and ** operator precedence (@Dodenis)
  • Fixed named arguments syntax support (@OwlyCode)
  • Fixed false positives in unused variables detection (@OwlyCode)
v4.0-BETA4

New features:

Fixes:

  • Fixed fatal error on invalid templates (@laurentmuller)
  • Fixed nested ternarties handling (@owlycode)
  • Fixed severity filter no working when using value "ignore" (@owlycode)
v4.0-BETA3

Fixes #99: The trailing space rule places the violations at the wrong line and column. Fixes #100: Invalid spacing around the .. operator

v3.2.2

Fixes #99 : The trailing space rule places the violations at the wrong line and column.

v4.0-BETA2

Includes fixes for Symfony 5 and Twig 3 compatibility.

Also deprecates twig versions older than 1.41 for 1.x or 2.10 for 2.x.

v3.2.1

Fixes a compatibility issue with twig 3.0

v3.2.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 1.41 or twig 2.10. Please use the .phar if you are using an older version of twig.

v4.0-BETA

This is the beta of the 4.0 version. It features a complete rewrite of the way spaces are handled.

Changelog:

  • Reworked the way spacing rules are declared and handled
  • Added arrow functions support
  • Added coalesce operator support
  • Added whitespace control support
  • Fixed a host of bugs

See the upgrade guide if you come from 3.1 or older versions.

v3.1.3
  • Fixed block variable declaration breaking unused variables detection
  • Fixed trailing slash in path argument causing a double slash in reporter output
v3.1.2
  • Fixed BC break when using Twig 1.X
  • Fixed false positive regression on macros
v3.1.1
  • First release providing a phar
  • Fixed more unused variables and macros detection cases
  • Fixed error when no path argument provided (will use current dir as default)
  • Fixed unclosed ternary operator in block causing crash
v3.0.1

@OwlyCode PR's

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
make-dev/orca
dmstr/symfony-system-resources-bundle
dmstr/symfony-job-queue-bundle
dmstr/openapi-json-schema-bundle
dmstr/keycloak-security-bundle
dmstr/doctrine-audit-log-bundle
dmstr/api-platform-utils-bundle
dmstr/api-configuration-bundle
chrisdev/ux-components
baks-dev/finances
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle