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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

k0pernikus/currency-converter
=============================

Currency conversion using the Eurpean Central bank rates

1.0.2(10y ago)1191MITPHPPHP &gt;=5.4CI failing

Since Sep 24Pushed 8y agoCompare

[ Source](https://github.com/k0pernikus/CurrencyConverter)[ Packagist](https://packagist.org/packages/k0pernikus/currency-converter)[ RSS](/packages/k0pernikus-currency-converter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

CurrencyConverter [![Scrutinizer Code Quality](https://camo.githubusercontent.com/f1a0e070f2ec20fe7b003804788b25dc9d531e7b54f86d57eedc94d826d285a4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6b307065726e696b75732f63757272656e6379636f6e7665727465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/k0pernikus/CurrencyConverter/?branch=master)
=====================================================================================================================================================================================================================================================================================================================================================================================================================

[](#currencyconverter-)

About
-----

[](#about)

Currency Converter supporting the [European Central Bank XML](http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml).

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

[](#installation)

[Get composer](https://getcomposer.org/) and then require the library using:

```
composer require k0pernikus/currency-converter

```

Usage
-----

[](#usage)

```
    $converter = CurrencyConverterFactory::createCurrencyConverter();

    $euroPrice = 1337;

    $usdPrice = $converter
        ->setFromCurrency('EUR')
        ->setToCurrency('USD')
        ->convert($euroPrice);

```

TODOs
-----

[](#todos)

- symfony2 bundle

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~3 days

Total

3

Last Release

3884d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/296b2a161f4593ecc196f37e91a3a11614dc0088b362c6557f0436d8a057901d?d=identicon)[k0pernikus](/maintainers/k0pernikus)

---

Top Contributors

[![k0pernikus](https://avatars.githubusercontent.com/u/436935?v=4)](https://github.com/k0pernikus "k0pernikus (18 commits)")

---

Tags

currencyconversionconverterECBeuroeuropean central bank

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[florianv/swap

Exchange rates library for PHP

1.3k6.4M16](/packages/florianv-swap)[florianv/laravel-swap

Currency exchange rates library for Laravel and Lumen

3342.0M2](/packages/florianv-laravel-swap)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[ujjwal/currency-converter

Currency Converter Class with features of caching and identifying currency from country Code

49225.4k](/packages/ujjwal-currency-converter)[danielme85/laravel-cconverter

Laravel 5 plug-in for currency conversion

42101.1k](/packages/danielme85-laravel-cconverter)

PHPackages © 2026

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