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

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

amkas/currency-converter
========================

Currency Converter is a simple easy to use package for Laravel for currency conversion.

v1.1.1(1y ago)317MITPHPPHP ^8.2

Since Sep 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Ch-Kashif171/currency-converter)[ Packagist](https://packagist.org/packages/amkas/currency-converter)[ Docs](https://github.com/Ch-Kashif171/currency-converter)[ RSS](/packages/amkas-currency-converter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)DependenciesVersions (4)Used By (0)

Currency Converter
==================

[](#currency-converter)

Currency Converter is a simple easy to use package for Laravel for currency conversion.

Getting Started
===============

[](#getting-started)

Install Currency Converter via composer. Note: If you do not have composer yet, you can install it by following the instructions on

Step 1. Install package
-----------------------

[](#step-1-install-package)

```
composer require amkas/currency-converter

```

Step 2. Register the Currency Converter service provider (Optional)
-------------------------------------------------------------------

[](#step-2-register-the-currency-converter-service-provider-optional)

in bootstrap/providers.php you can add following line

```
 \Amkas\CurrencyConverter\ConversionServiceProvider::class,
```

Step 3. Publish Assets
----------------------

[](#step-3-publish-assets)

To publish the assets run the below command.

```
 php artisan vendor:publish --tag=amkas-currency-converter

```

Or

```
php artisan vendor:publish --provider="Amkas\CurrencyConverter\ConversionServiceProvider"
```

This command will copy three files as below:

```
Copying file [amkas\currency-converter\src\Models\CurrencyRate.php] to [app\Models\CurrencyRate.php]  DONE
Copying file [amkas\currency-converter\src\config\currency_converter.php] to [config\currency_converter.php]  DONE
Copying directory [amkas\currency-converter\src\database\migrations] to [database\migrations]  DONE
```

So there are three files

1. Currency rates migration
2. Currency Rate model
3. config/currency-converter.php

After that, you need to run the migration command to migrate the currency rates table into database as below:

```
 php artisan migrate

```

Then you can set the default currency in config file as below:

```
'default_currency' => 'USD',

```

and other config settings.

After that, you can create a CRUD to save the currency rates into database

Usage:
======

[](#usage)

In Controller include Currency Facade and call as below:

```
  use Amkas\CurrencyConverter\Facades\Currency;

  $convertedAmount = Currency::convertAmount(10, 'EUR');
```

If you want to use a helper's function use below.

```
  $convertedAmount = convertAmount(10, 'EUR');
```

If you want to convert amount from one currency to another using Currency Facade, call chain functions as below:

```
    $convertedAmount = Currency::amount(10)
        ->from('EUR')
        ->to("USD")
        ->convert();
```

with helper functions you can call as below:

```
    $convertedAmount = amount(10)
        ->from("EUR")
        ->to("USD")
        ->convert();
```

#### Note: Since this currency converter has cache implemented to avoid database query everytime when currency conversion function will call, so every time when new currency rate will add via CurrencyRate model, the cahce will automatically reset.

[](#note-since-this-currency-converter-has-cache-implemented-to-avoid-database-query-everytime-when-currency-conversion-function-will-call-so-every-time-when-new-currency-rate-will-add-via-currencyrate-model-the-cahce-will-automatically-reset)

However, you can reset that specific cache by runing the below command:

```
php artisan converter:reset-cache
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 56.1% 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 ~14 days

Total

3

Last Release

569d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73ca1ff4fdae6d345a63d4b9291a77a1e92fdf97e530af57b239a35401e47144?d=identicon)[Ch-Kashif171](/maintainers/Ch-Kashif171)

---

Top Contributors

[![ch-kashif171](https://avatars.githubusercontent.com/u/10650083?v=4)](https://github.com/ch-kashif171 "ch-kashif171 (37 commits)")[![Mawqif-Kashif](https://avatars.githubusercontent.com/u/257463427?v=4)](https://github.com/Mawqif-Kashif "Mawqif-Kashif (29 commits)")

---

Tags

currencycurrency-converioncurrency-convertercurrency-exchange-ratesexchangeexchange-rateexchange-rateslaravellaravel-currencylaravel-currency-apilaravel-frameworklaravel-packagemoneymoney-conversion-ratesmoney-convertermoney-exchangemoney-managerphp-currencyphp-currency-libraryphp-moneylaravelcurrencycurrency-converter

### Embed Badge

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

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

###  Alternatives

[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)
