1Twig Extensions 2=============== 3 4.. toctree:: 5 :hidden: 6 7 text 8 i18n 9 intl 10 array 11 date 12 13The Twig Extensions is a library that provides several useful extensions 14for Twig. You can find it's code at `GitHub.com/twigphp/Twig-extensions`_. 15 16.. _extensions-install: 17 18Installation 19------------ 20 21This library can be installed via Composer running the following from the 22command line: 23 24.. code-block:: bash 25 26 composer require twig/extensions 27 28* :doc:`Text <text>`: Provides useful filters for text manipulation; 29 30* :doc:`I18n <i18n>`: Adds internationalization support via the ``gettext`` 31 library; 32 33* :doc:`Intl <intl>`: Adds a filter for localization of ``DateTime`` objects, numbers and currency; 34 35* :doc:`Array <array>`: Provides useful filters for array manipulation; 36 37* :doc:`Date <date>`: Adds a filter for rendering the difference between dates. 38 39.. _`GitHub.com/twigphp/Twig-extensions`: https://github.com/twigphp/Twig-extensions 40