PHPackages                             studio-stomp/craft-twig-linter - 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. [Templating &amp; Views](/categories/templating)
4. /
5. studio-stomp/craft-twig-linter

ActiveLibrary[Templating &amp; Views](/categories/templating)

studio-stomp/craft-twig-linter
==============================

A module for Craft CMS bringing `sserbin/twig-linter` to Craft CMS projects

0.6.1(11mo ago)64.7k↓21.4%[4 issues](https://github.com/studio-stomp/craft-twig-linter/issues)MITPHPPHP ^8.2

Since Aug 27Pushed 11mo ago4 watchersCompare

[ Source](https://github.com/studio-stomp/craft-twig-linter)[ Packagist](https://packagist.org/packages/studio-stomp/craft-twig-linter)[ RSS](/packages/studio-stomp-craft-twig-linter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (10)Versions (15)Used By (0)

Craft Twig Linter plugin for Craft CMS 5.x
==========================================

[](#craft-twig-linter-plugin-for-craft-cms-5x)

A module for Craft CMS bringing `sserbin/twig-linter` to Craft CMS projects

Requirements
------------

[](#requirements)

This plugin requires Craft CMS 5.0.0 or later.

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

[](#installation)

To install the module, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require studio-stomp/craft-twig-linter

    ```
3. Load the module in the application config:

```
// File: ./config/app.console.php
return [
    'modules' => [
        // ... other modules
        'craft-twig-linter' => studiostomp\crafttwiglinter\CraftTwigLinter::class
    ],
    'bootstrap' => [
        // ... other module ids
        'craft-twig-linter'
    ],
];
```

Craft Twig Linter Overview
--------------------------

[](#craft-twig-linter-overview)

Craft Twig Linter works by:

- Instantiating the Symfony command from `sserbin/twig-linter`
- Instantiating a Symfony console app for running the command
- Instantiating a WebApplication for the project (the module runs in context of ConsoleApplication)
- Aggregate all registered Twig extension from both Console and Web (registered by both Craft Plugins and Craft Modules)
- Create a new Twig environment with all the collected extensions
- running the Symfony app

Configuring Craft Twig Linter
-----------------------------

[](#configuring-craft-twig-linter)

Currently, there is no configuration

Using Craft Twig Linter
-----------------------

[](#using-craft-twig-linter)

```
    php craft craft-twig-linter/lint /path/to/templates /path/to/other/templates

```

Craft Twig Linter Roadmap
-------------------------

[](#craft-twig-linter-roadmap)

Some things to do, and ideas for potential features:

- Make template paths configurable
- Make template paths autodiscoverable
- Make Symfony app independent (PR `sserbin/twig-linter` or fork it)
- Make compatible for just Yii2 (if Yii2, does that also cover Craft?)

Brought to you by [Studio Stomp](https://studiostomp.nl)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 90.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~174 days

Recently: every ~206 days

Total

11

Last Release

349d ago

PHP version history (5 changes)0.1.0PHP 7.4.\*

0.2.0PHP ^7.4

0.2.1PHP ^7.4|^8.0

0.4.0PHP ^8.0

0.4.1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/849c0af2d2cb9ad06d1b5bb546e3abeba351e08968f898c698458f6194ed9b38?d=identicon)[studio-stomp](/maintainers/studio-stomp)

---

Top Contributors

[![qrazi](https://avatars.githubusercontent.com/u/7550540?v=4)](https://github.com/qrazi "qrazi (28 commits)")[![studio-stomp](https://avatars.githubusercontent.com/u/51315691?v=4)](https://github.com/studio-stomp "studio-stomp (3 commits)")

---

Tags

cmsCraftcraftcmscraft-modulecraft twig linter

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/studio-stomp-craft-twig-linter/health.svg)

```
[![Health](https://phpackages.com/badges/studio-stomp-craft-twig-linter/health.svg)](https://phpackages.com/packages/studio-stomp-craft-twig-linter)
```

###  Alternatives

[lewisjenkins/craft-dynamic-fields

Populate Craft fields with dynamic data using the power of Twig.

14667.0k](/packages/lewisjenkins-craft-dynamic-fields)[nystudio107/craft-minify

A simple plugin that allows you to minify blocks of HTML, CSS, and JS inline in Craft CMS templates.

37461.2k29](/packages/nystudio107-craft-minify)[nystudio107/craft-autocomplete

Provides Twig template IDE autocomplete of Craft CMS &amp; plugin variables

44204.4k13](/packages/nystudio107-craft-autocomplete)[jalendport/craft-preparse

A fieldtype that parses Twig when an element is saved and saves the result as plain text.

1086.4k](/packages/jalendport-craft-preparse)[verbb/footnotes

Adds a footnotes feature to CKEditor fields and Twig templates.

213.3k](/packages/verbb-footnotes)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
