定制 sserbin/twig-linter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sserbin/twig-linter

最新稳定版本:3.1.2

Composer 安装命令:

composer require sserbin/twig-linter

包简介

Standalone cli twig linter (based on symfony-bridge-twig)

README 文档

README

Build Status

Intro

Standalone cli twig linter (heavily based on twig lint command from symfony-bridge), for those who don't use Symfony (if you do, you are better of using Symfony native lint:twig)

Installation

composer require --dev sserbin/twig-linter:@dev

Usage

vendor/bin/twig-linter lint /path/to/your/templates

By default *.twig files are searched. Pass in --ext=? (e.g. --ext=html) to override it.

Limitations/known issues

Any non-standard twig's functions/filters/tests are ignored during linting. I.e. if there's invocations of undefined filter this will not be reported by linter as it doesn't know about your specific twig environment.

If, however, you want it to, you can manually add LintCommand to your console application's command set instantiating it with your environment.

统计信息

  • 总下载量: 687.34k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 13
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 13
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固