balpom / twig-text-extension
Twig template engine extension, what implements truncate and wordwrap filters without U function from Symfony framework.
v1.0.1
2024-05-28 15:48 UTC
Requires
- php: ^7.4|^8
- twig/twig: ^2.10|^3
README
Twig "truncate" and "wordwrap" filters.
This Twig template engine extension implements "truncate" and "wordwrap" filters without "u" function from Symfony framework. It is created for use in Slim 4 framework, but may be used in all other purposes. The original repository, of which the extension was a part, was abandoned ( https://github.com/twigphp/Twig-extensions ).
Requirements
- PHP >= 7.4, PHP 8
Installation
Using composer (recommended)
composer require balpom/twig-text-extension
License
MIT License See LICENSE.MD