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

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

alessandrominoccheri/currency-converter
=======================================

A library to convert your price from a currency to another

v2.0.6(7y ago)16811MITPHPPHP ^7.1.0

Since Sep 18Pushed 7y ago2 watchersCompare

[ Source](https://github.com/AlessandroMinoccheri/currency-converter)[ Packagist](https://packagist.org/packages/alessandrominoccheri/currency-converter)[ Docs](https://github.com/AlessandroMinoccheri/currency-converter)[ RSS](/packages/alessandrominoccheri-currency-converter/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (11)Used By (1)

currency-converter
==================

[](#currency-converter)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d842ae251129ad6c4e303c0d7b17d86707c436a70d576c75f59485227bc849b8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f416c657373616e64726f4d696e6f6363686572692f63757272656e63792d636f6e7665727465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/AlessandroMinoccheri/currency-converter/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/5bc48f1e1e84c8bb42174b8d3c3a7f3a3d77d28b973e4693b9a2ccc4a8085b20/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f416c657373616e64726f4d696e6f6363686572692f63757272656e63792d636f6e7665727465722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/AlessandroMinoccheri/currency-converter/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/059ecd2422392ee2739202f9822ab47870d5b4eafb5c968f156142b2758f29fd/68747470733a2f2f706f7365722e707567782e6f72672f616c657373616e64726f6d696e6f6363686572692f63757272656e63792d636f6e7665727465722f762f737461626c652e737667)](https://packagist.org/packages/alessandrominoccheri/currency-converter)[![License](https://camo.githubusercontent.com/36d1f4275c2d1b9c4f9f16fe6c369ce8f19e396cbf62b359d34a58e53631f466/68747470733a2f2f706f7365722e707567782e6f72672f616c657373616e64726f6d696e6f6363686572692f63757272656e63792d636f6e7665727465722f6c6963656e73652e737667)](https://packagist.org/packages/alessandrominoccheri/currency-converter)[![Build Status](https://camo.githubusercontent.com/50614b12396e3f5860d8fb2e9499aa6e9fc0f9950bceb1b45e588fc6a3fcec95/68747470733a2f2f6170692e7472617669732d63692e6f72672f416c657373616e64726f4d696e6f6363686572692f63757272656e63792d636f6e7665727465722e706e67)](https://travis-ci.org/AlessandroMinoccheri/currency-converter)[![Total Downloads](https://camo.githubusercontent.com/101462783b24c11862e957233e66c1db8c9680ae098cedf96cbd74c2d2f905fc/68747470733a2f2f706f7365722e707567782e6f72672f616c657373616e64726f6d696e6f6363686572692f63757272656e63792d636f6e7665727465722f642f746f74616c2e706e67)](https://packagist.org/packages/alessandrominoccheri/currency-converter)

Php library to convert a currency into another

Work in progress

How to install
--------------

[](#how-to-install)

To install this library you can use composer and launch it from your CLI:

```
composer require alessandrominoccheri/currency-converter

```

Usage
-----

[](#usage)

If you want to use this library you need to create a new instance of `CurrencyConverter` and after call the method `convert`like this

You need also to pass an apikey generated from here:

[CurrencyConverterApi](https://free.currencyconverterapi.com/)

```
$currencyConverter = new CurrencyConverter($yourApiKey);
$result = $currencyConverter->convert('EUR', 'USD', random_int(1, 999999));

```

Make
----

[](#make)

This project uses Makefile to run tasks.

- make agile it create an overview of test case methods presented as full sentences
- make test runs classic phpunit tests
- make coverage create and open in browser code coverage

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 92.3% 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 ~26 days

Recently: every ~9 days

Total

9

Last Release

2583d ago

Major Versions

v1.0.1 → v2.0.02019-03-06

PHP version history (2 changes)v1.0.0PHP ^7.0.0

v1.0.1PHP ^7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0ea71f884c621ad504ca545b717e107f3c6e4854d9e38c2dbd5a96ff184d3c9c?d=identicon)[AlessandroMinoccheri](/maintainers/AlessandroMinoccheri)

---

Top Contributors

[![AlessandroMinoccheri](https://avatars.githubusercontent.com/u/3356506?v=4)](https://github.com/AlessandroMinoccheri "AlessandroMinoccheri (24 commits)")[![sensorario](https://avatars.githubusercontent.com/u/820248?v=4)](https://github.com/sensorario "sensorario (2 commits)")

---

Tags

phppluginmoneycurrencyconvertercomponentexchangefinanceeurodollar

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[firefly-iii/data-importer

Firefly III Data Import Tool.

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

This provides Laravel with currency functions such as currency formatting and conversion using up-to-date exchange rates.

4081.1M6](/packages/torann-currency)

PHPackages © 2026

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