fungio / twig-extensions
Common additional features for Twig that do not directly belong in core
dev-master / 2.0.x-dev
2023-01-11 14:59 UTC
Requires
- php: ^7.1.3|^8.0
- symfony/polyfill-mbstring: ^1.10
- twig/twig: ^2.10
Requires (Dev)
- symfony/phpunit-bridge: ^4.2|^5.0
- symfony/translation: ^3.4|^4.2|^5.0
Suggests
- symfony/translation: Allow the time_diff output to be translated
This package is not auto-updated.
Last update: 2024-11-14 22:12:21 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.