Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Latest commit

 

History

History
39 lines (25 loc) · 955 Bytes

index.rst

File metadata and controls

39 lines (25 loc) · 955 Bytes

Twig Extensions

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.

Installation

This library can be installed via Composer running the following from the command line:

composer require twig/extensions
  • Text <text>: Provides useful filters for text manipulation;
  • I18n <i18n>: Adds internationalization support via the gettext library;
  • Intl <intl>: Adds a filter for localization of DateTime objects, numbers and currency;
  • Array <array>: Provides useful filters for array manipulation;
  • Date <date>: Adds a filter for rendering the difference between dates.