https://github.com/twigphp/twig-extensions
Twig extensions
https://github.com/twigphp/twig-extensions
php twig twig-extension
Last synced: 3 months ago
JSON representation
Twig extensions
- Host: GitHub
- URL: https://github.com/twigphp/twig-extensions
- Owner: twigphp
- License: mit
- Archived: true
- Created: 2010-02-19T11:08:22.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2020-11-01T02:14:44.000Z (about 5 years ago)
- Last Synced: 2025-07-08T00:04:03.281Z (6 months ago)
- Topics: php, twig, twig-extension
- Language: PHP
- Homepage: https://twig.symfony.com/
- Size: 209 KB
- Stars: 1,448
- Watchers: 36
- Forks: 275
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Twig Extensions Repository
==========================
**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.
.. _documentation: http://twig-extensions.readthedocs.io/