Download the PHP package lukasbableck/contao-twig-utils-bundle without Composer
On this page you can find all versions of the php package lukasbableck/contao-twig-utils-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lukasbableck/contao-twig-utils-bundle
More information about lukasbableck/contao-twig-utils-bundle
Files in lukasbableck/contao-twig-utils-bundle
Package contao-twig-utils-bundle
Short Description This bundle provides some useful additional twig functions and filters for Contao Open Source CMS.
License LGPL-3.0-or-later
Informations about the package contao-twig-utils-bundle
contao-twig-utils-bundle
This bundle provides some useful additional twig functions and filters for Contao Open Source CMS.
Filters
json_decode(?bool $assoc = false)
Decodes a JSON string into a PHP array or object.
to_array
Converts a given value to an array. If the value is already an array, its children are converted to arrays as well.
Functions
contao_config()
Returns the Contao Config object.
contao_form(id|alias)
Generates a form and returns the html output.
file(id|uuid|path)
Returns the FilesModel for the given id, uuid or path.
page(id|alias, ?bool $published = false)
Returns the PageModel for the given id or alias. If $published is set to true, it will only return published pages.
reading_time(text, ?int $wpm = 250)
Estimates the reading time for the given text based on the provided words per minute (default is 250 wpm). The function returns the reading time in seconds.
All versions of contao-twig-utils-bundle with dependencies
contao/core-bundle Version ^5.3 || ^6.0
symfony/dependency-injection Version ^6.4 || ^7.4 || ^8.1
symfony/http-kernel Version ^6.4 || ^7.4 || ^8.1
twig/twig Version ^3.10.2