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

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

akibtanjim/currency-converter
=============================

This package provides currency rates as well as single and multiple currency for Laravel app by using https://openexchangerates.org API

1.0(7y ago)315.8k↑40.3%MITPHPPHP &gt;=7.0

Since Aug 13Pushed 7y ago2 watchersCompare

[ Source](https://github.com/akibtanjim/currency-converter)[ Packagist](https://packagist.org/packages/akibtanjim/currency-converter)[ RSS](/packages/akibtanjim-currency-converter/feed)WikiDiscussions master Synced 2d ago

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

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

[](#laravel-currency-converter)

This package is built for laravel with a view to get the currency rates and convert single and multiple currency to another currency. This uses  for fetching rates. This package supports 170 currencies.

There are 4 types of plan in open exchange rate. By using free plan and it's api key one would only be able to get rates/convert currency based on USD. So the suggestion is to use any of other 3 plan and it's api key.

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

[](#installation)

Install using composer:

```

composer require akibtanjim/currency-converter

```

In Laravel 5.5 or higher, this package will be automatically discovered and you can safely skip the following two steps.

If using Laravel 5.4 or lower, after updating composer, add the ServiceProvider to the providers array in `config/app.php`

In the **providers** section add the below line:

```

  AkibTanjim\Currency\CurrencyServiceProvider::class,

```

add the Alias to **aliases** section of config/app.php:

```

  'Currency'=> AkibTanjim\Currency\Facades\CurrencyConverter::class,

```

### Example

[](#example)

Open command prompt and wrtie the following command:

```

  php artisan make:controller ExampleController

```

Now paste the following code:

```
