twig / extensions
Common additional features for Twig that do not directly belong in core
Installs: 77 766 461
Dependents: 752
Suggesters: 23
Security: 0
Stars: 1 460
Watchers: 38
Forks: 284
Open Issues: 2
Requires
- twig/twig: ^1.27|^2.0
Requires (Dev)
- symfony/phpunit-bridge: ^3.4
- symfony/translation: ^2.7|^3.4
Suggests
- symfony/translation: Allow the time_diff output to be translated
This package is auto-updated.
Last update: 2020-10-29 15:42:56 UTC
README
WARNING: This repository is abandoned in favor of Twig Core Extra extensions.
- ArrayExtension:
shuffle
filter -> no equivalent - DateExtension:
time_diff
filter -> no equivalent - I18nExtension:
trans
filter -> use the trans filter from the Symfony Translator extension (symfony/twig-bridge) - IntlExtension:
localizeddate
,localizednumber
,localizedcurrency
filters: use the Twig intl extra extension: format_date, format_number, format_currency, ... - TextExtension:
truncate
,wordwrap
filters: use the Twig string extra extension: u filter
This repository hosts Twig Extensions that do not belong to the core but can be nonetheless interesting to share with other developers.
More Information
Read the documentation for more information.