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

This package is auto-updated.

Last update: 2024-11-28 16:53:44 UTC


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