asm89/twig-lint 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

asm89/twig-lint

最新稳定版本:1.0.3

Composer 安装命令:

composer require asm89/twig-lint

包简介

Standalone twig linter.

关键字:

README 文档

README

twig-lint is a lint tool for your twig files.

It can be useful to integrate in your ci setup or as the basis of editor plugins (e.g. syntastic for Vim).

Build Status

Installation / Usage

As a dev dependency (recommended)

Add the following to your composer.json:

{
    "require-dev": {
        "asm89/twig-lint": "*"
    }
}

Run ./bin/twig-lint lint <file>.

As standalone executable

Install as a global composer dependency:

composer global require "asm89/twig-lint" "@stable"

Run ~/.composer/vendor/bin/twig-lint lint <file>.

Vim and Syntastic configuration

For the standalone executable, add the following to your ~/.vimrc file:

let g:syntastic_twig_twiglint_exec = 'php'
let g:syntastic_twig_twiglint_exe = 'php /path/to/twig-lint'

For the composer dependency, twig-lint must be in your $PATH, no further configuration is needed.

Authors

Alexander iam.asm89@gmail.com
Marc Weistroff marc.weistroff@sensiolabs.com (creator of the original twig:lint command in the symfony framework)

License

  • twig-lint is licensed under the MIT License - see the LICENSE file for details
  • I am providing code in this repository to you under an open source license. Because this is my personal repository, the license you receive to my code is from me and not from my employer (Facebook).

统计信息

  • 总下载量: 5.52M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 118
  • 点击次数: 1
  • 依赖项目数: 4
  • 推荐数: 1

GitHub 信息

  • Stars: 117
  • Watchers: 4
  • Forks: 32
  • 开发语言: PHP

其他信息

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