gglnx/twig-html-extended-extra

Extends the HTML extension for Twig

0.4.0 2022-02-07 16:43 UTC

This package is auto-updated.

Last update: 2022-08-07 18:11:46 UTC


README

Packagist

This extension extends the twig/html-extra package and can be used as drop-in replacement.

Requirements

  • Twig >=2.14 and Twig >=3.0
  • PHP >=7.4

Installation

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());