PHPackages                             internetrix/currency-converter - 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. internetrix/currency-converter

ActiveSilverstripe-module[Utility &amp; Helpers](/categories/utility)

internetrix/currency-converter
==============================

Retrieve, store and apply currency conversions in your SilverStripe site.

2211PHP

Since Jan 18Pushed 9y ago4 watchersCompare

[ Source](https://github.com/Internetrix/currency-converter)[ Packagist](https://packagist.org/packages/internetrix/currency-converter)[ RSS](/packages/internetrix-currency-converter/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

SilverStripe Currency-Converter module
======================================

[](#silverstripe-currency-converter-module)

Retrieve, store and apply currency conversions in your SilverStripe site.

Installation
------------

[](#installation)

```
composer require internetrix/currency-converter

```

Displaying rates
----------------

[](#displaying-rates)

To output a converted currency, call the ConvertibleCurrency class and include the amount. If the amount is not in the base currency, include the amount's currency. If it requires conversion to a specific currency, include that target currency. `ConvertibleCurrency::convert($amount, $amountCurrency, $targetCurrency)`

From inside a template, simply add "AutoConversion" to the output variable. To get the currency symbol, append "Full". AutoConversion can also accept two parameters: base and target currency. `Total Price: $Total.AutoConversion.Full`

To switch the display rate, add the target currency to the URL using a "uscc" variable (it then persists for the session.) For example, to show aussie dollars: `http://somewhere.com/mypage/?uscc=AUD`

Refreshing the rates
--------------------

[](#refreshing-the-rates)

To get the latest currency conversion rates, run the included task with a daily cron. It populates the database with conversions between all configured cuurencies. `/dev/tasks/UpdateCurrencyRatesTask`

API Configuration
-----------------

[](#api-configuration)

The module connects to Fixer.io for the latest currency conversion rates as supplied by the European Central Bank. Currently it reports 31 currencies. To use a different API, update the config.yml `latest_currency_rates_api : 'http://api.fixer.io/latest'`

The currency locale information is listed in the yaml file, this is not comprehensive and may need updating. Amend it to include/exclude the rates saved into the database, using the `other_currencies` section.

Note there is one additional lookup to geoplugin.com to determine the current user's locale.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f2028df988ee004ba1951c38852161aef16c343d4831e37fa16edb7e77729c86?d=identicon)[Internetrix](/maintainers/Internetrix)

---

Top Contributors

[![mikeyc7m](https://avatars.githubusercontent.com/u/6045159?v=4)](https://github.com/mikeyc7m "mikeyc7m (8 commits)")

### Embed Badge

![Health badge](/badges/internetrix-currency-converter/health.svg)

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

###  Alternatives

[zumba/swivel

Strategy driven feature toggles

208138.1k5](/packages/zumba-swivel)[woutersioen/sir-trevor-php

A Sir Trevor to HTML conversion helper for PHP

2834.9k](/packages/woutersioen-sir-trevor-php)

PHPackages © 2026

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