PHPackages                             lukapeharda/hmrc-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. lukapeharda/hmrc-exchange-rates

ActiveLibrary[API Development](/categories/api)

lukapeharda/hmrc-exchange-rates
===============================

Fetch HM Revenue &amp; Customs exchange rates for customs &amp; VAT

v1.1.0(2y ago)08801MITPHP

Since May 16Pushed 2y ago1 watchersCompare

[ Source](https://github.com/lukapeharda/hmrc-exchange-rates)[ Packagist](https://packagist.org/packages/lukapeharda/hmrc-exchange-rates)[ RSS](/packages/lukapeharda-hmrc-exchange-rates/feed)WikiDiscussions master Synced yesterday

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

HM Revenue &amp; Customs Exchange Rates client
==============================================

[](#hm-revenue--customs-exchange-rates-client)

Fetch monthly exchange rates from HMRC website using PHP. Rates are parsed from [monthly files](https://www.trade-tariff.service.gov.uk/exchange_rates/monthly).

Fetched CSV files are stored in a provided path to optimise and speed up the process.

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

[](#installation)

Install it using composer:

`composer require lukapeharda/hmrc-exchange-rates`

Usage
-----

[](#usage)

Fetch all currency / exchange rates value pairs:

```
