You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.rst 933B

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