PHPackages                             amoori/laravel-exchange-rates - 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. [API Development](/categories/api)
4. /
5. amoori/laravel-exchange-rates

ActiveLibrary[API Development](/categories/api)

amoori/laravel-exchange-rates
=============================

A wrapper package for interacting with the exchangeratesapi.io API.

1167PHP

Since Feb 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/AmirMehrabi/laravel-exchange-rates)[ Packagist](https://packagist.org/packages/amoori/laravel-exchange-rates)[ RSS](/packages/amoori-laravel-exchange-rates/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Laravel Exchange Rates](https://camo.githubusercontent.com/3409d9aa152b37c3e63a6874893909b1450cc580b3086c62db66cba076d09717/68747470733a2f2f616d6f6f72692e636f2e756b2f696d616765732f637573746f6d2f6c61726176656c2d65786368616e67652d72617465732d6c6f676f2e706e67)](https://camo.githubusercontent.com/3409d9aa152b37c3e63a6874893909b1450cc580b3086c62db66cba076d09717/68747470733a2f2f616d6f6f72692e636f2e756b2f696d616765732f637573746f6d2f6c61726176656c2d65786368616e67652d72617465732d6c6f676f2e706e67)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0e81f4c332a0250706b190833b5e954ffbdc369a49f124ca68b0c501cb1cbcb4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616d6f6f72692f6c61726176656c2d65786368616e67652d72617465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amoori/laravel-exchange-rates)[![Build Status](https://camo.githubusercontent.com/be9fa96790cd2cdc3746b370dc10f3d049040350e78e3cf5cdc4c34fb0cc9f7a/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6173682d6a632d616c6c656e2f6c61726176656c2d65786368616e67652d72617465732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/ash-jc-allen/laravel-exchange-rates)[![Total Downloads](https://camo.githubusercontent.com/fd066b19a250f9a287cb06c9c3f253b401a1acfe20cad22c2641f8bfab78acdb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616d6f6f72692f6c61726176656c2d65786368616e67652d72617465732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amoori/laravel-exchange-rates)[![PHP from Packagist](https://camo.githubusercontent.com/e685b90b78a5e44155ed167ea4011ed9ef7ff65c55111edae4424ce53d0c5ee1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f616d6f6f72692f6c61726176656c2d65786368616e67652d72617465733f7374796c653d666c61742d737175617265)](https://packagist.org/packages/amoori/laravel-exchange-rates)[![GitHub license](https://camo.githubusercontent.com/bae1da0aba544256b9083286e95974d0802e23349359c69308ad36bd770470da/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6173682d6a632d616c6c656e2f6c61726176656c2d65786368616e67652d72617465733f7374796c653d666c61742d737175617265)](https://github.com/ash-jc-allen/short-url/blob/master/LICENSE)

Table of Contents
-----------------

[](#table-of-contents)

- [Overview](#overview)
- [Installation](#installation)
- [Usage](#usage)
    - [Methods](#methods)
        - [Available Currencies](#available-currencies)
        - [Exchange Rate](#exchange-rate)
        - [Exchange Rates Between Date Range](#exchange-rates-between-date-range)
        - [Convert Currencies](#convert-currencies)
        - [Convert Currencies Between Date Range](#convert-currencies-between-date-range)
    - [Facade](#facade)
    - [Examples](#examples)
    - [Caching](#caching)
    - [Supported Currencies](#supported-currencies)
- [Testing](#testing)
- [Security](#security)
- [Contribution](#contribution)
- [Credits](#credits)
- [Changelog](#changelog)
- [Upgrading](#upgrading)
- [License](#license)

Overview
--------

[](#overview)

A simple Laravel package used for interacting with the [exchangeratesapi.io](http://exchangeratesapi.io) API. 'Laravel Exchange Rates' allow you to get the latest or historical exchange rates and convert monetary values between different currencies.

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

[](#installation)

You can install the package via Composer:

```
composer require amoori/laravel-exchange-rates
```

The package has been developed and tested to work with the following minimum requirements:

- PHP 7.2
- Laravel 5.8

Usage
-----

[](#usage)

### Methods

[](#methods)

#### Available Currencies

[](#available-currencies)

```
$exchangeRates = new ExchangeRate();
$exchangeRates->currencies();
```

#### Exchange Rate

[](#exchange-rate)

```
