Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/twigphp/Twig-extensions

Twig extensions
https://github.com/twigphp/Twig-extensions

php twig twig-extension

Last synced: 2 days ago
JSON representation

Twig extensions

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/