Download the PHP package studio-stomp/craft-twig-linter without Composer
On this page you can find all versions of the php package studio-stomp/craft-twig-linter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download studio-stomp/craft-twig-linter
More information about studio-stomp/craft-twig-linter
Files in studio-stomp/craft-twig-linter
Download studio-stomp/craft-twig-linter
More information about studio-stomp/craft-twig-linter
Files in studio-stomp/craft-twig-linter
Vendor studio-stomp
Package craft-twig-linter
Short Description A module for Craft CMS bringing `sserbin/twig-linter` to Craft CMS projects
License MIT
Package craft-twig-linter
Short Description A module for Craft CMS bringing `sserbin/twig-linter` to Craft CMS projects
License MIT
Please rate this library. Is it a good library?
Informations about the package craft-twig-linter
Craft Twig Linter plugin for Craft CMS 5.x
A module for Craft CMS bringing sserbin/twig-linter
to Craft CMS projects
Requirements
This plugin requires Craft CMS 5.0.0 or later.
Installation
To install the module, follow these instructions.
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require studio-stomp/craft-twig-linter
- Load the module in the application config:
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
Currently, there is no configuration
Using Craft Twig Linter
php craft craft-twig-linter/lint /path/to/templates /path/to/other/templates
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
All versions of craft-twig-linter with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
ext-json Version *
craftcms/cms Version ^4.0|^5.0
sserbin/twig-linter Version ^3.0
ext-json Version *
craftcms/cms Version ^4.0|^5.0
sserbin/twig-linter Version ^3.0
The package studio-stomp/craft-twig-linter contains the following files
Loading the files please wait ....