PHPackages                             flagbit/currency-bundle - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. flagbit/currency-bundle

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

flagbit/currency-bundle
=======================

FlagbitCurrencyBundle for the Symfony Framework

3.0.0(7y ago)02.7k[1 issues](https://github.com/flagbit/FlagbitCurrencyBundle/issues)BSD-3-ClausePHPPHP ^7.0

Since Apr 15Pushed 7y ago23 watchersCompare

[ Source](https://github.com/flagbit/FlagbitCurrencyBundle)[ Packagist](https://packagist.org/packages/flagbit/currency-bundle)[ Docs](https://github.com/Flagbit/FlagbitCurrencyBundle)[ RSS](/packages/flagbit-currency-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (5)Used By (0)

FlagbitCurrencyBundle
=====================

[](#flagbitcurrencybundle)

[![Build Status](https://camo.githubusercontent.com/999fb6b8994bb93741ae2f2f38a7de51ef0f3f9dbdb291a8eb4782ebf2443117/68747470733a2f2f7472617669732d63692e6f72672f466c61676269742f466c616762697443757272656e637942756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Flagbit/FlagbitCurrencyBundle) [![SensioLabsInsight](https://camo.githubusercontent.com/da3b0b07d42d563764a260e6b486b43191a2274b4f9df82534656f718167b8fe/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f65646263656636362d356463662d343164612d613232322d6439323831343635306332612f6d696e692e706e67)](https://insight.sensiolabs.com/projects/edbcef66-5dcf-41da-a222-d92814650c2a) [![License](https://camo.githubusercontent.com/6187bfb85da89b9cf89f5607ee13237e9d2830a2702d8930169754ad5f49fda7/68747470733a2f2f706f7365722e707567782e6f72672f666c61676269742f63757272656e63792d62756e646c652f6c6963656e7365)](https://packagist.org/packages/flagbit/currency-bundle) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/e5db4a95c9f7ec50c43e2e900851a885caba2246b1f6fb4c98e57b5094235050/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f466c61676269742f466c616762697443757272656e637942756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Flagbit/FlagbitCurrencyBundle/?branch=master)

About
-----

[](#about)

The FlagbitCurrencyBundle provides basic functions to display currency symbols and names.

Configuration
-------------

[](#configuration)

You can set your default currency. The bundle defaults to EUR. Currency code has to be UPPERCASE.

```
flagbit_currency:
    default_currency: EUR
```

Services
--------

[](#services)

Fetch the global default currency.

```
$container->get('flagbit_currency')->getDefaultCurrency(); // EUR
```

Fetch the currency name. Actual output depends on your locale set.

```
$container->get('flagbit_currency')->getCurrencyName(); // Euro
$container->get('flagbit_currency')->getCurrencyName('EUR'); // Euro
$container->get('flagbit_currency')->getCurrencyName('USD'); // US Dollar
```

Fetch the symbol for the default currency or a given currency.

```
$container->get('flagbit_currency')->getCurrencySymbol(); // €
$container->get('flagbit_currency')->getCurrencySymbol('EUR'); // €
$container->get('flagbit_currency')->getCurrencySymbol('USD'); // $
```

**It is recommended, that you don't fetch a service directly from a container and use dependency injection instead.**

Twig
----

[](#twig)

### Functions

[](#functions)

#### currency\_name

[](#currency_name)

Fetch the currency name. Actual output depends on your locale set.

```
{{ currency_name() }} {# example output: Euro #}
{{ currency_name('EUR') }} {# example output: Euro #}
{{ currency_name('USD') }} {# example output: US Dollar #}
```

#### curreny\_symbol

[](#curreny_symbol)

Fetch the symbol for the default currency or a given currency.

```
{{ currency_symbol() }} {# example output: € #}
{{ currency_symbol('CHF') }} {# example output: CHF #}
{{ currency_symbol('EUR') }} {# example output: € #}
```

### Globals

[](#globals)

The default currency code is available as variable.

```
{{ currency.default }} {# example output: EUR #}
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% of commits — single point of failure

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

Every ~520 days

Total

4

Last Release

2855d ago

Major Versions

1.1.0 → 2.0.02016-01-25

2.0.0 → 3.0.02018-07-23

PHP version history (3 changes)1.0.0PHP &gt;=5.3.0

2.0.0PHP &gt;=5.5.0

3.0.0PHP ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/449384?v=4)[flagbit](/maintainers/flagbit)[@flagbit](https://github.com/flagbit)

---

Top Contributors

[![flagbird](https://avatars.githubusercontent.com/u/754112?v=4)](https://github.com/flagbird "flagbird (8 commits)")[![davidfuhr](https://avatars.githubusercontent.com/u/446054?v=4)](https://github.com/davidfuhr "davidfuhr (4 commits)")

---

Tags

currency

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/flagbit-currency-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/flagbit-currency-bundle/health.svg)](https://phpackages.com/packages/flagbit-currency-bundle)
```

###  Alternatives

[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[spomky-labs/pwa-bundle

Progressive Web App Manifest Generator Bundle for Symfony.

6144.4k1](/packages/spomky-labs-pwa-bundle)[symfony/ux-cropperjs

Cropper.js integration for Symfony

19280.3k3](/packages/symfony-ux-cropperjs)[robole/sulu-ai-translator-bundle

Translate any type of content using DeepL

181.3k](/packages/robole-sulu-ai-translator-bundle)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)

PHPackages © 2026

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