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

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

mgcodeur/laravel-currency-converter
===================================

Laravel Currency Converter: Effortlessly convert currencies in your Laravel applications, no API key required. It's fast, easy, and completely free.

1.0.9(1mo ago)5335.5k↑10.4%3[2 PRs](https://github.com/mgcodeur/laravel-currency-converter/pulls)MITPHPPHP ^8.1||^8.2||^8.3||^8.4CI passing

Since Apr 29Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/mgcodeur/laravel-currency-converter)[ Packagist](https://packagist.org/packages/mgcodeur/laravel-currency-converter)[ Docs](https://github.com/mgcodeur/laravel-currency-converter)[ GitHub Sponsors](https://github.com/mgcodeur)[ RSS](/packages/mgcodeur-laravel-currency-converter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (26)Versions (13)Used By (0)

Laravel Currency Converter
==========================

[](#laravel-currency-converter)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3cb661c7b08673692584f03dcde7fe31390dbca461ad5f9584c25db1a4c7decc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d67636f646575722f6c61726176656c2d63757272656e63792d636f6e7665727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mgcodeur/laravel-currency-converter)

[![GitHub Tests Action Status](https://camo.githubusercontent.com/089215284c2e6a5f9cf370a70ba005a156cf042444e03125fb663cad27539c94/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d67636f646575722f6c61726176656c2d63757272656e63792d636f6e7665727465722f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/mgcodeur/laravel-currency-converter/?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/5454931bbd245895c2313712218158d20121cfbbe93c6f290682b2ceb4bd2b63/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d67636f646575722f6c61726176656c2d63757272656e63792d636f6e7665727465722f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/mgcodeur/laravel-currency-converter/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/cf075c4e36c85cbf595f8e5b333c3259f07a0c0879171d8c3874b2a4b7c6c276/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d67636f646575722f6c61726176656c2d63757272656e63792d636f6e7665727465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mgcodeur/laravel-currency-converter)

Laravel Currency Converter: Effortlessly convert currencies in your Laravel applications, no API key required. It's fast, easy, and completely free.

📦 Installation
--------------

[](#-installation)

You can install the package via composer:

```
composer require mgcodeur/laravel-currency-converter
```

After Composer has installed the Laravel Currency Converter package, you may run the `currency-converter:install` Artisan command:

```
php artisan currency-converter:install
```

✍🏻 Basic Usage
--------------

[](#-basic-usage)

### Convert money from one to another

[](#convert-money-from-one-to-another)

```
// convert 10 USD to MGA
$convertedAmount = CurrencyConverter::convert(10)
            ->from('USD')
            ->to('MGA')
            ->get();

dd($convertedAmount);
```

**NB: Don't Forget to import the CurrencyConverter Facades**

```
use Mgcodeur\CurrencyConverter\Facades\CurrencyConverter;
```

### Convert all money from one

[](#convert-all-money-from-one)

You can convert all money from one currency when you don't specify the `to` method.

```
// convert 5 EUR to all currencies
$convertedAmount = CurrencyConverter::convert(5)
            ->from('EUR')
            ->get();

dd($convertedAmount);
```

### Get all currencies

[](#get-all-currencies)

To get all currencies, you can use the `currencies` method.

```
$currencies = CurrencyConverter::currencies()->get();

dd($currencies);
```

### Format output result

[](#format-output-result)

Instead of using the `get` method, you can use the `format` method to format the output result.

```
// convert 10 USD to EUR and format the result
$convertedAmount = CurrencyConverter::convert(10)
            ->from('USD')
            ->to('EUR') // The 'to' method specifies the target currency. If you want to convert between all currencies, you can omit this method.
            ->format();

dd($convertedAmount);
```

By default, thousand separator is a comma (,) and decimal separator is a dot (.). You can change these separators in published config file (`config/currency-converter.php`).
If you open the config file, you will see the following code:

```
return [
    'currency' => [
        'format' => [
            'decimals' => 2, // Number of decimal places
            'decimal_separator' => ',', // Decimal separator: used to separate the integer part from the fractional part (e.g., 1,99)
            'thousand_separator' => '.', // Thousand separator: used to separate groups of thousands in large numbers (e.g., 1.000 for one thousand)
        ]
    ],
];
```

### 🪴 Project Activity

[](#-project-activity)

[![Alt](https://camo.githubusercontent.com/e7b7952e8513baf6955d21ae080a4dc9470950d35c55752f1a0751c905e41468/68747470733a2f2f7265706f62656174732e6178696f6d2e636f2f6170692f656d6265642f323563303335373633636165623030623132376562346365323634343764346235613336613866352e737667 "Project Activity")](https://camo.githubusercontent.com/e7b7952e8513baf6955d21ae080a4dc9470950d35c55752f1a0751c905e41468/68747470733a2f2f7265706f62656174732e6178696f6d2e636f2f6170692f656d6265642f323563303335373633636165623030623132376562346365323634343764346235613336613866352e737667)

###  Health Score

56

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity42

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 91.2% 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 ~173 days

Total

5

Last Release

58d ago

PHP version history (2 changes)1.0.5PHP ^8.1||^8.2

1.0.9PHP ^8.1||^8.2||^8.3||^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a2698331a7a55cc476ee9229bcaa167b2e3fe590ff989e0b40465e643c672e1?d=identicon)[mgcodeur](/maintainers/mgcodeur)

---

Top Contributors

[![mgcodeur](https://avatars.githubusercontent.com/u/91603608?v=4)](https://github.com/mgcodeur "mgcodeur (52 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![designvoid](https://avatars.githubusercontent.com/u/630948?v=4)](https://github.com/designvoid "designvoid (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

laravelmgcodeurlaravel-currency-converter

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.8k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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