PHPackages                             lullabot/twig-cs-fixer-drupal - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lullabot/twig-cs-fixer-drupal

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lullabot/twig-cs-fixer-drupal
=============================

Drupal specific rules for Twig CS Fixer.

v2.3.0(1mo ago)03.2k↑699.5%1MITPHPPHP &gt;=8.2CI passing

Since Mar 9Pushed 1mo agoCompare

[ Source](https://github.com/Lullabot/twig-cs-fixer-drupal)[ Packagist](https://packagist.org/packages/lullabot/twig-cs-fixer-drupal)[ RSS](/packages/lullabot-twig-cs-fixer-drupal/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (4)Versions (7)Used By (1)

Twig CS Fixer Drupal
====================

[](#twig-cs-fixer-drupal)

[![Packagist Version](https://camo.githubusercontent.com/242f3d30092f39a709d5368ca8d4ed183918a39c68b9b1f3b388865682f3866c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c756c6c61626f742f747769672d63732d66697865722d64727570616c)](https://packagist.org/packages/lullabot/twig-cs-fixer-drupal)[![CI](https://github.com/Lullabot/twig-cs-fixer-drupal/actions/workflows/phpunit.yml/badge.svg)](https://github.com/Lullabot/twig-cs-fixer-drupal/actions/workflows/phpunit.yml)

[Drupal](https://www.drupal.org/) specific config for [Twig CS Fixer](https://github.com/VincentLanglet/Twig-CS-Fixer).

Installation
------------

[](#installation)

- [Install Twig CS Fixer](https://github.com/VincentLanglet/Twig-CS-Fixer?tab=readme-ov-file#installation)
- `composer req --dev lullabot/twig-cs-fixer-drupal`
- In your Twig CS Fixer [configuration file](https://github.com/VincentLanglet/Twig-CS-Fixer/blob/main/docs/configuration.md) enable predefined Drupal specific config:

    ```
