diff --git a/README.md b/README.md index 6ca58c8..53b9b54 100644 --- a/README.md +++ b/README.md @@ -85,13 +85,13 @@ Set `CURRENCY_GEO_ACCESS_KEY` to your provided access key from currency.getgeoap With that task completed, you're ready to start using [Currency.GetGeoApi.com](https://currency.getgeoapi.com) for retrieving up-to-date exchange rates. -### Frankfurter.app +### Frankfurter.dev -[frankfurter.app](https://frankfurter.app) is an open-source API for current and historical foreign exchange rates published by the European Central Bank, which can be used without an API key. +[frankfurter.dev](https://frankfurter.dev) is an open-source API for current and historical foreign exchange rates published by the European Central Bank, which can be used without an API key. In your `exchange.php` config file, set `default` to `frankfurter`, or set `EXCHANGE_DRIVER` to `frankfurter` in your `.env` file. -With that task completed, you're ready to start using [frankfurter.app](https://frankfurter.app) for retrieving up-to-date +With that task completed, you're ready to start using [frankfurter.dev](https://frankfurter.dev) for retrieving up-to-date exchange rates. ### Cache diff --git a/src/ExchangeRateProviders/FrankfurterProvider.php b/src/ExchangeRateProviders/FrankfurterProvider.php index 9af7205..f456841 100644 --- a/src/ExchangeRateProviders/FrankfurterProvider.php +++ b/src/ExchangeRateProviders/FrankfurterProvider.php @@ -17,7 +17,7 @@ final class FrankfurterProvider implements ExchangeRateProvider { public function __construct( private Factory $client, - private string $baseUrl = 'https://api.frankfurter.app', + private string $baseUrl = 'https://api.frankfurter.dev/v1', ) { } diff --git a/tests/Unit/ExchangeRateProviders/FrankfurterProviderTest.php b/tests/Unit/ExchangeRateProviders/FrankfurterProviderTest.php index 87bc873..644a388 100644 --- a/tests/Unit/ExchangeRateProviders/FrankfurterProviderTest.php +++ b/tests/Unit/ExchangeRateProviders/FrankfurterProviderTest.php @@ -31,7 +31,7 @@ $fixerProvider->getRates('EUR', currencies()); $client->assertSent(function (Request $request) { - return str_starts_with($request->url(), 'https://api.frankfurter.app/latest'); + return str_starts_with($request->url(), 'https://api.frankfurter.dev/v1/latest'); }); });