Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Frankfurter endpoint #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ExchangeRateProviders/FrankfurterProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
) {
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

Expand Down