Skip to content

Commit a448918

Browse files
committed
docs: list unirate_api in provider tables
Exchanger merged UniRateAPI support in florianv/exchanger#180. Swap auto-inherits provider services from Exchanger's Registry, so `->add('unirate_api', ['api_key' => getenv('UNIRATE_API_KEY')])` already works on master; only the docs were missing. - README.md: add row to commercial providers table (alphabetical position between `open_exchange_rates` and `webservicex`); bump provider counts 30 → 31 in tagline, providers section, and the Exchanger sibling-package line. - doc/readme.md: add `unirate_api` / `api_key` row to the commercial config table. UniRateAPI is a commercial REST API for FX (latest rates on the free tier; historical and commodities on the paid tier — same shape as the other paid providers in the table).
1 parent 98ed520 commit a448918

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Total Downloads](https://img.shields.io/packagist/dt/florianv/swap.svg?style=flat-square)](https://packagist.org/packages/florianv/swap)
66
[![Version](http://img.shields.io/packagist/v/florianv/swap.svg?style=flat-square)](https://packagist.org/packages/florianv/swap)
77

8-
> _The easy-to-use PHP currency conversion library. Retrieve exchange rates from 30 providers, with caching and fallback. Maintained since 2014._
8+
> _The easy-to-use PHP currency conversion library. Retrieve exchange rates from 31 providers, with caching and fallback. Maintained since 2014._
99
1010
<table>
1111
<tr>
@@ -101,7 +101,7 @@ For amount conversion (including the [moneyphp/money](https://github.com/moneyph
101101

102102
## 📊 Providers
103103

104-
Swap supports 30 exchange rate providers. Pass the **identifier** to `Builder::add()`.
104+
Swap supports 31 exchange rate providers. Pass the **identifier** to `Builder::add()`.
105105

106106
### Commercial providers (require an API key)
107107

@@ -123,6 +123,7 @@ Swap supports 30 exchange rate providers. Pass the **identifier** to `Builder::a
123123
| Fixer (direct) | `fixer` | EUR (free), * (paid) | * | Yes |
124124
| 1Forge | `forge` | * | * | No |
125125
| Open Exchange Rates | `open_exchange_rates` | USD (free), * (paid) | * | Yes |
126+
| UniRateAPI | `unirate_api` | * | * | Yes |
126127
| WebserviceX | `webservicex` | * | * | No |
127128
| xChangeApi.com | `xchangeapi` | * | * | Yes |
128129
| Xignite | `xignite` | * | * | Yes |
@@ -162,7 +163,7 @@ You can also add your own provider by implementing the `Exchanger\Contract\Excha
162163
The Swap ecosystem is a layered toolkit for currency conversion in PHP:
163164

164165
- [**Swap**](https://github.com/florianv/swap). The easy-to-use, high-level API (this package).
165-
- [**Exchanger**](https://github.com/florianv/exchanger). Lower-level, more granular alternative; direct access to the 30 provider implementations and the `ExchangeRateService` interface.
166+
- [**Exchanger**](https://github.com/florianv/exchanger). Lower-level, more granular alternative; direct access to the 31 provider implementations and the `ExchangeRateService` interface.
166167
- [**Laravel Swap**](https://github.com/florianv/laravel-swap). Laravel application of Swap.
167168
- [**Symfony Swap**](https://github.com/florianv/symfony-swap). Symfony integration of Swap.
168169

doc/readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ Commercial providers require an API key. The option name varies by provider. The
281281
| `fixer_apilayer` | `api_key` | |
282282
| `forge` | `api_key` | |
283283
| `open_exchange_rates` | `app_id` | `enterprise` (bool) |
284+
| `unirate_api` | `api_key` | |
284285
| `xchangeapi` | `api-key` | (note the hyphen) |
285286
| `xignite` | `token` | |
286287

0 commit comments

Comments
 (0)