| 
									
										
										
										
											2022-06-06 14:40:19 +02:00
										 |  |  | <?php | 
					
						
							| 
									
										
										
										
											2022-10-16 19:29:53 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-06 14:40:19 +02:00
										 |  |  | /* | 
					
						
							| 
									
										
										
										
											2022-10-16 19:29:53 +02:00
										 |  |  |  * cer.php | 
					
						
							| 
									
										
										
										
											2022-06-06 14:40:19 +02:00
										 |  |  |  * Copyright (c) 2022 james@firefly-iii.org | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This file is part of Firefly III (https://github.com/firefly-iii). | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is free software: you can redistribute it and/or modify | 
					
						
							|  |  |  |  * it under the terms of the GNU Affero General Public License as | 
					
						
							|  |  |  |  * published by the Free Software Foundation, either version 3 of the | 
					
						
							|  |  |  |  * License, or (at your option) any later version. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * This program is distributed in the hope that it will be useful, | 
					
						
							|  |  |  |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
					
						
							|  |  |  |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
					
						
							|  |  |  |  * GNU Affero General Public License for more details. | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * You should have received a copy of the GNU Affero General Public License | 
					
						
							|  |  |  |  * along with this program.  If not, see <https://www.gnu.org/licenses/>. | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-10-16 19:29:53 +02:00
										 |  |  | declare(strict_types=1); | 
					
						
							| 
									
										
										
										
											2022-06-06 14:40:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | return [ | 
					
						
							| 
									
										
										
										
											2023-07-25 09:01:44 +02:00
										 |  |  |     'url'              => 'https://ff3exchangerates.z6.web.core.windows.net', | 
					
						
							| 
									
										
										
										
											2024-03-18 06:20:33 +01:00
										 |  |  |     'enabled'          => env('ENABLE_EXCHANGE_RATES', false), | 
					
						
							| 
									
										
										
										
											2023-07-25 09:01:44 +02:00
										 |  |  |     'download_enabled' => env('ENABLE_EXTERNAL_RATES', false), | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-06-06 14:40:19 +02:00
										 |  |  |     // if currencies are added, default rates must be added as well!
 | 
					
						
							|  |  |  |     // source: https://www.xe.com/currencyconverter/
 | 
					
						
							| 
									
										
										
										
											2025-04-15 04:54:36 +02:00
										 |  |  |     'date'             => '2025-04-15', | 
					
						
							| 
									
										
										
										
											2023-07-25 09:01:44 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     // all rates are from EUR to $currency:
 | 
					
						
							|  |  |  |     'rates'            => [ | 
					
						
							| 
									
										
										
										
											2022-06-06 14:40:19 +02:00
										 |  |  |         // europa
 | 
					
						
							| 
									
										
										
										
											2023-07-25 09:01:44 +02:00
										 |  |  |         'EUR' => 1, | 
					
						
							| 
									
										
										
										
											2024-12-30 07:36:22 +01:00
										 |  |  |         'HUF' => 410.79798, | 
					
						
							| 
									
										
										
										
											2025-04-15 04:54:36 +02:00
										 |  |  |         'GBP' => 0.86003261, | 
					
						
							|  |  |  |         'UAH' => 46.867455, | 
					
						
							|  |  |  |         'PLN' => 4.2802098, | 
					
						
							|  |  |  |         'TRY' => 43.180054, | 
					
						
							| 
									
										
										
										
											2024-12-30 07:36:22 +01:00
										 |  |  |         'DKK' => 7.4591, | 
					
						
							| 
									
										
										
										
											2025-04-15 04:54:36 +02:00
										 |  |  |         'RON' => 7.4648336, | 
					
						
							| 
									
										
										
										
											2022-06-06 14:40:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // Americas
 | 
					
						
							| 
									
										
										
										
											2025-04-15 04:54:36 +02:00
										 |  |  |         'USD' => 1.1349044, | 
					
						
							|  |  |  |         'BRL' => 6.6458518, | 
					
						
							|  |  |  |         'CAD' => 1.575105, | 
					
						
							|  |  |  |         'MXN' => 22.805278, | 
					
						
							| 
									
										
										
										
											2022-06-06 14:40:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // Oceania currencies
 | 
					
						
							| 
									
										
										
										
											2025-04-15 04:54:36 +02:00
										 |  |  |         'IDR' => 19070.382, | 
					
						
							|  |  |  |         'AUD' => 1.787202, | 
					
						
							|  |  |  |         'NZD' => 1.9191078, | 
					
						
							| 
									
										
										
										
											2022-06-06 14:40:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // africa
 | 
					
						
							| 
									
										
										
										
											2025-04-15 04:54:36 +02:00
										 |  |  |         'EGP' => 57.874172, | 
					
						
							|  |  |  |         'MAD' => 10.549438, | 
					
						
							|  |  |  |         'ZAR' => 21.444356, | 
					
						
							| 
									
										
										
										
											2022-06-06 14:40:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // asia
 | 
					
						
							| 
									
										
										
										
											2025-04-15 04:54:36 +02:00
										 |  |  |         'JPY' => 162.47195, | 
					
						
							|  |  |  |         'RMB' => 8.2849977, | 
					
						
							|  |  |  |         'CNY' => 8.2849977, | 
					
						
							|  |  |  |         'RUB' => 93.34423, | 
					
						
							|  |  |  |         'INR' => 97.572815, | 
					
						
							| 
									
										
										
										
											2022-06-06 14:40:19 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |         // int
 | 
					
						
							| 
									
										
										
										
											2025-04-15 04:54:36 +02:00
										 |  |  |         'ILS' => 4.1801786, | 
					
						
							|  |  |  |         'CHF' => 0.92683126, | 
					
						
							| 
									
										
										
										
											2024-12-30 07:36:22 +01:00
										 |  |  |         'HRK' => 7.5345, // replaced by EUR
 | 
					
						
							| 
									
										
										
										
											2025-04-15 04:54:36 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |         'ISK' => 145.10532, | 
					
						
							|  |  |  |         'NOK' => 11.980824, | 
					
						
							|  |  |  |         'SEK' => 11.08809, | 
					
						
							|  |  |  |         'HKD' => 8.8046322, | 
					
						
							|  |  |  |         'CZK' => 25.092213, | 
					
						
							| 
									
										
										
										
											2022-06-06 14:40:19 +02:00
										 |  |  |     ], | 
					
						
							|  |  |  | ]; |