appolodev/sf-toolbox

Toolbox for Symfony

1.1.5 2022-06-23 16:46 UTC

This package is auto-updated.

Last update: 2022-06-23 16:46:50 UTC


README

This package add some tools for developers who use Symfony

Twig

Intl Extension

Configuration

Put this inside service:

AppoloDev\SFToolbox\Twig\IntlExtension:
    tags:
        - { name: twig.extension }

Usage

{{ date|localizeddate('d LLLL', 'fr') }}

Formats can be found here