chsxf / twig-tools
Extension Tools for Twig
Installs: 240
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/chsxf/twig-tools
Requires
- twig/twig: >=2
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.