chsxf/twig-tools
最新稳定版本:1.0.1
Composer 安装命令:
composer require chsxf/twig-tools
包简介
Extension Tools for Twig
README 文档
README
The main purpose of this package is to extend the capabilities of Twig with a collection of tools and extensions.
Conventions
This repository uses gitmoji for its commit messages.
Available Extensions
\chsxf\Twig\Extension\Gettextprovides gettext functions for use in Twig templates\chsxf\Twig\Extension\Lazyprovides a Twig tag to temporarily skip strict variable checking\chsxf\Twig\Extension\SwitchCaseprovides a switch case tag implementation for Twig templates
Additional Tools
In complement of the Gettext extension, this package provides a tool allowing you to easily extract localized strings from Twig templates through 3rd-party tools like poedit.
See the Gettext extension's documentation for further information.
Getting Started
Requirements
- Twig 2+
Installation
We strongly recommend using Composer to install this package.
composer require chsxf/twig-tools
License
Source code is released under the terms of the GNU General Public License v2 if not specified otherwise.
统计信息
- 总下载量: 241
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2021-09-19