emilmassey/twig-roman-numerals

A Twig extension for converting roman to arabic numerals and vice-versa

v1.0.0 2021-03-26 18:58 UTC

This package is auto-updated.

Last update: 2024-04-27 01:45:09 UTC


README

Tests

A Twig extension for converting roman to arabic numerals and vice-versa.

Installation

composer require emilmassey/twig-roman-numerals

Usage

For Symfony usage you'll want to add it as a service and tag it for Twig.

# config/services.yml
services:
    twig.extension.roman_numerals:
        class: EmilMassey\Twig\RomanNumerals\RomanNumeralsExtension
        tags:
            - { name: twig.extension }