gglnx / twig-html-extended-extra

Extends the HTML extension for Twig

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTML Extended Extra for Twig

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

About

Extends the HTML extension for Twig

License:MIT License


Languages

Language:PHP 100.0%