This extension extends the twig/html-extra
package and can be used as drop-in replacement.
- Twig >=2.14 and Twig >=3.0
- PHP >=7.4
The recommended way to install this extension is via Composer:
composer require gglnx/twig-html-extended-extra
Afterwards you can add this extension to Twig:
require_once '/path/to/vendor/autoload.php';
$twig = new \Twig\Environment($loader);
$twig->addExtension(new \Gglnx\TwigHtmlExtendedExtra\Extension\HtmlExtendedExtension());