Twig Extensions =============== .. toctree:: :hidden: text i18n intl array date The Twig Extensions is a library that provides several useful extensions for Twig. You can find it's code at `GitHub.com/twigphp/Twig-extensions`_. .. _extensions-install: Installation ------------ This library can be installed via Composer running the following from the command line: .. code-block:: bash composer require twig/extensions * :doc:`Text `: Provides useful filters for text manipulation; * :doc:`I18n `: Adds internationalization support via the ``gettext`` library; * :doc:`Intl `: Adds a filter for localization of ``DateTime`` objects, numbers and currency; * :doc:`Array `: Provides useful filters for array manipulation; * :doc:`Date `: Adds a filter for rendering the difference between dates. .. _`GitHub.com/twigphp/Twig-extensions`: https://github.com/twigphp/Twig-extensions