PHPackages                             adrianheras/amount-symbol - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. adrianheras/amount-symbol

ActiveLibrary[Templating &amp; Views](/categories/templating)

adrianheras/amount-symbol
=========================

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

1.0(11y ago)02611MITPHPPHP &gt;=5.3.0

Since May 12Pushed 11y ago1 watchersCompare

[ Source](https://github.com/adrianheras/amount-symbol)[ Packagist](https://packagist.org/packages/adrianheras/amount-symbol)[ Docs](http://github.com/adrianheras/amount-symbol)[ RSS](/packages/adrianheras-amount-symbol/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (1)Used By (1)

Amount Symbol Twig extension
============================

[](#amount-symbol-twig-extension)

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

For example

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

Outputs **70.95 €**

Installation for Symfony2
=========================

[](#installation-for-symfony2)

1. Update your composer.json

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

or use composer's require command:

```
composer require adrianheras/amount-symbol:1.*

```

2. Register an Extension as a Service

Now you must let the Service Container know about your newly created Twig Extension:

YAML:

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

XML:

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

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4070d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/07b6709118888b30c981f466903faec71d5fcc13c409d45cfb1023a870b3bcb5?d=identicon)[adrianheras](/maintainers/adrianheras)

---

Tags

twigsymbolamountamount with symbolpercentage

### Embed Badge

![Health badge](/badges/adrianheras-amount-symbol/health.svg)

```
[![Health](https://phpackages.com/badges/adrianheras-amount-symbol/health.svg)](https://phpackages.com/packages/adrianheras-amount-symbol)
```

###  Alternatives

[symfony/ux-twig-component

Twig components for Symfony

22018.6M356](/packages/symfony-ux-twig-component)[symfony/ux-live-component

Live components for Symfony

1647.0M128](/packages/symfony-ux-live-component)[symfony/ux-toolkit

A tool to easily create a design system in your Symfony app with customizable, well-crafted Twig components

16126.1k1](/packages/symfony-ux-toolkit)[mati365/ckeditor5-symfony

CKEditor 5 integration for Symfony

262.6k](/packages/mati365-ckeditor5-symfony)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
