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
Requires
- php: >=7.4
- twig/twig: ^2.4|^3.0
- wandersonwhcr/romans: ^1.3
Requires (Dev)
- symfony/phpunit-bridge: ^4.4.9|^5.0.9
README
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 }