2017 © Pedro Peláez
 

library money-twig-extension

Twig extension for moneyphp/money

image

ivoba/money-twig-extension

Twig extension for moneyphp/money

  • Friday, April 27, 2018
  • by ivoba
  • Repository
  • 1 Watchers
  • 1 Stars
  • 887 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 194 % Grown

The README.md

money-twig-extension

Twig Extension for Money value object, (*1)

Latest Version on Packagist ![Software License][ico-license] Build Status ![Coverage Status][ico-scrutinizer] Quality Score ![Total Downloads][ico-downloads], (*2)

Install

Via Composer, (*3)

``` bash $ composer require ivoba/money-twig-extension, (*4)


## Usage Register the Twig Extension according to the framework you are using. Symfony Example: ```xml <service id="ivoba_money_twig_extension" class="Ivoba\Money\Twig\MoneyExtension"> <tag name="twig.extension" /> </service>

In your templates use like so:, (*5)

 {{ money.convertedAmount }} 213.23
 {{ money|money_i18n_format('de_DE') }} 1.123,45 €
 {{ money|money_i18n_format('en_US') }} €1,123.45
 {{ money|money_i18n_decimal('en_US') }} 1,123.45
 {{ money|money_currency_symbol('en_US') }} €
 {{ money|money_currency_name('en_US') }} Euro

Change log

Please see CHANGELOG for more information what has changed recently., (*6)

Testing

bash $ composer test, (*7)

Contributing

Please see CONTRIBUTING for details., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

27/04 2018

dev-master

9999999-dev https://www.github.com/ivoba/money-twig-extension

Twig extension for moneyphp/money

  Sources   Download

MIT

The Requires

 

The Development Requires

twig money

27/04 2018
27/04 2018
08/03 2016