From 4dd1a344c6474087a3f8782dd54f5c7b4acc67ed Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 23 Aug 2023 00:24:50 +0200 Subject: area connections and town maps --- db/currencies/currencies.php | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 db/currencies/currencies.php (limited to 'db/currencies') diff --git a/db/currencies/currencies.php b/db/currencies/currencies.php deleted file mode 100644 index 7c8b2ac..0000000 --- a/db/currencies/currencies.php +++ /dev/null @@ -1,42 +0,0 @@ - 0, -]; - -$currencies = []; -$apiResponse = json_decode(file_get_contents('https://api.frankfurter.app/latest?base=eur'), true); -$currencies['last_updated'] = $apiResponse['date']; -foreach ($apiResponse['rates'] as $code => $rate) { - $currencies['map'][$code] = [ - 'rate' => $rate, - 'symbol' => $currencySymbols[$code], - 'name' => $currencyNames[$code], - 'decimals' => $decimals[$code] ?? 2, - ]; -} - -// add EUR -$currencies['map']['EUR'] = [ - 'rate' => 1, - 'symbol' => $currencySymbols['EUR'], - 'name' => $currencyNames['EUR'], - 'decimals' => 2, -]; - -file_put_contents( - dirname(__DIR__) . '/_generated/currencies.json', - json_encode($currencies) -); -- cgit v1.2.3