PHPackages                             honhat/convert-currency - 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. honhat/convert-currency

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

honhat/convert-currency
=======================

Laravel module for currency conversion functionalities

v1.0.0(2y ago)00MITPHPPHP &gt;=7.4

Since May 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/vannhatcd/ConvertCurrency)[ Packagist](https://packagist.org/packages/honhat/convert-currency)[ RSS](/packages/honhat-convert-currency/feed)WikiDiscussions main Synced 1mo ago

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

Currency Conversion Module

Description:

This module provides functionalities to convert currencies between different units. It utilizes real-time exchange rates from reputable API sources to ensure the most accurate rates.

Features:

Convert between over 150 popular currencies. Utilizes real-time exchange rates from reputable API sources. Supports converting large amounts of currencies. Easy to integrate into web and mobile applications. Installation:

1. Install the module:

```
composer require honhat/convert-currency

```

2. Configure the module:

Add the following keys to your config/currency.php file:

```
API_KEY_CURRENCY = ENV('API_KEY_CURRENCY');
DATA_URL_CURRENCY = ENV('DATA_URL_CURRENCY');
MASTER_CURRENCY = .ENV('MASTER_CURRENCY', 'USD');

```

Replace your\_api\_key with your API key from the exchange rate API provider. Replace USD with the default currency you want to use.

3. Install a service provider:

This module requires a service provider to make exchange rate API calls. You can use any service provider that supports the ExchangeRateProviderInterface interface.

```
PHP
// config/services.php

$providers = [
    // ...
    Module\ConvertCurrency\Services\ExchangeRateProviders\FixerIoProvider::class,
];

```

Usage:

To use the module, you can inject the CurrencyService service into your class:

```
PHP
use Module\ConvertCurrency\Services\CurrencyService;

class MyController
{
    private $currencyService;

    public function __construct(CurrencyService $currencyService)
    {
        $this->currencyService = $currencyService;
    }

    public function convertCurrency($amount, $fromCurrency, $toCurrency)
    {
        $convertedAmount = $this->currencyService->convert($amount, $fromCurrency, $toCurrency);

        return $convertedAmount;
    }
}

```

You can use the convert method to convert currencies:

```
PHP
$convertedAmount = $this->currencyService->convert(100, 'USD', 'EUR');

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

746d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f7c6e887d0027f37276524d374d92684ffeda04a45984d3c761f65f540fbefe?d=identicon)[vannhatcd](/maintainers/vannhatcd)

---

Top Contributors

[![vannhatrcvn](https://avatars.githubusercontent.com/u/213377662?v=4)](https://github.com/vannhatrcvn "vannhatrcvn (1 commits)")

---

Tags

laravelmoneycurrencyconversionexchange

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/honhat-convert-currency/health.svg)

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

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

Currency exchange rates library for Laravel and Lumen

3342.0M2](/packages/florianv-laravel-swap)[florianv/swap

Exchange rates library for PHP

1.3k6.4M16](/packages/florianv-swap)[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)[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)
