PHPackages                             norbybaru/exchange-rate - 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. norbybaru/exchange-rate

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

norbybaru/exchange-rate
=======================

Laravel Currency Exchange rate

v1.0(6y ago)22[1 PRs](https://github.com/norbybaru/exchange-rate/pulls)MITPHPPHP &gt;=7.1.3CI passing

Since Jul 26Pushed 7mo agoCompare

[ Source](https://github.com/norbybaru/exchange-rate)[ Packagist](https://packagist.org/packages/norbybaru/exchange-rate)[ RSS](/packages/norbybaru-exchange-rate/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (4)Used By (0)

Laravel Exchange Rate
=====================

[](#laravel-exchange-rate)

Laravel Exchange Rate Package Allows to convert money from one currency to another using latest exchange rate on market

Supported Providers
-------------------

[](#supported-providers)

- [Exchangerates](https://exchangeratesapi.io)
- [European Central Bank](https://www.ecb.europa.eu)
- [ExchangeRate-API](https://www.exchangerate-api.com)
- [OpenExchangeRates](https://openexchangerates.org)
- [CurrencyLayer](https://currencylayer.com)
- [CurrencyConverterAPI](https://www.currencyconverterapi.com)

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

[](#installation)

```
composer require norbybaru/exchange-rate
```

Publish Config `config/exchange-rate.php`

```
php artisan vendor:publish --tag="exchange-rate-config"
```

Publish Migrations

```
php artisan vendor:publish --tag="exchange-rate-migration"
```

Run Migration

```
php artisan migrate
```

Usage
-----

[](#usage)

Update exchange rate to get latest rate on the market. Run below command to get latest exchange rate

```
php artisan exchange-rate:update
```

It is recommended to run this command as a cron job to update exchange rates daily. For more information, see [Laravel Scheduler](https://laravel.com/docs/scheduling)

- Get Rate

```
