2017 © Pedro Peláez
 

library amount-symbol

Amount symbol Twig extension where you can easily add symbol to amounts like currencies and percentages

image

adrianheras/amount-symbol

Amount symbol Twig extension where you can easily add symbol to amounts like currencies and percentages

  • Tuesday, May 19, 2015
  • by adrianheras
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Amount Symbol Twig extension

This is a Twig extension for Symfony2 Framework where you can easily add symbol to amounts like currencies and percentages., (*1)

For example, (*2)

{{ merkat.cash|amount_symbol("EUR") }}

Outputs 70.95 €, (*3)

Installation for Symfony2

1) Update your composer.json, (*4)

"require": {
    "adrianheras/amount-symbol": "1.*"
}

or use composer's require command:, (*5)

composer require adrianheras/amount-symbol:1.*

2) Register an Extension as a Service, (*6)

Now you must let the Service Container know about your newly created Twig Extension:, (*7)

YAML:, (*8)

# app/config/config.yml
services:
    adrianheras.twig.amount_symbol:
        class: AdrianHeras\Twig\Extension\AmountSymbolExtension
        tags:
        - { name: twig.extension }

XML:, (*9)

```xml, (*10)

or into your bundle src\Acme\AcmeBundle\Resources\config\services.xml

, (*11)

The Versions

19/05 2015

dev-master

9999999-dev http://github.com/adrianheras/amount-symbol

Amount symbol Twig extension where you can easily add symbol to amounts like currencies and percentages

  Sources   Download

MIT

The Requires

 

The Development Requires

twig percentage symbol amount amount with symbol

12/05 2015

1.0

1.0.0.0 http://github.com/adrianheras/amount-symbol

Amount symbol Twig extension where you can easily add symbol to amounts like currencies and percentages

  Sources   Download

MIT

The Requires

 

twig percentage symbol amount amount with symbol