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

ActiveLibrary

reaway/exchange-rate
====================

ExchangeRate

v1.0.0(4d ago)02↓100%MITPHPPHP &gt;=8.0

Since Mar 19Pushed 4d agoCompare

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

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

Exchange Rate
=============

[](#exchange-rate)

[![PHP Version](https://camo.githubusercontent.com/854124dd57cfd3aad3184fca9760bf1f33a5ec1e5d080cfbe8aa4e3337ba46e6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e302d3838393242462e737667)](https://php.net/)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

A PHP exchange rate query library supporting multiple data sources.

[简体中文](README.zh-CN.md)

Features
--------

[](#features)

- ✅ **Multi-source Support** — Built-in CurrencyLayer and ExchangeRate-API data sources
- ✅ **Easy Extension** — Simple driver extension mechanism to add new data sources
- ✅ **Lazy Loading** — Automatically fetches exchange rate data on first access
- ✅ **Type Safe** — Full PHP 8.0+ type declarations

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0
- ext-curl

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

[](#installation)

```
composer require reaway/exchange-rate
```

Usage
-----

[](#usage)

### Basic Usage

[](#basic-usage)

```
