-
Notifications
You must be signed in to change notification settings - Fork 44
/
swap.php
122 lines (114 loc) · 3.61 KB
/
swap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
/*
* This file is part of Laravel Swap.
*
* (c) Florian Voutzinos <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return [
/*
|--------------------------------------------------------------------------
| Options.
|--------------------------------------------------------------------------
|
| The options to pass to Swap amongst:
|
| * cache_ttl: The cache ttl in seconds.
*/
'options' => [],
/*
|--------------------------------------------------------------------------
| Services
|--------------------------------------------------------------------------
|
| This option specifies the services to use with their name as key and
| their config as value.
|
| Here is the config spec for each service:
|
| * "central_bank_of_czech_republic", "central_bank_of_republic_turkey", "european_central_bank", "google",
| "national_bank_of_romania", "webservicex", "russian_central_bank", "cryptonator", "bulgarian_national_bank"
| can be enabled with "true" as value.
|
| * 'apilayer_fixer' => [
| 'access_key' => 'secret', // Your access key
| ]
|
| * 'apilayer_exchange_rates_data' => [
| 'access_key' => 'secret', // Your access key
| ]
|
| * 'exchange_rates_api' => [
| 'access_key' => 'secret', // Your access key
| ]
|
| * 'coin_layer' => [
| 'access_key' => 'secret', // Your access key
| 'paid' => true, // True if your access key is a paying one
| ]
|
| * 'forge' => [
| 'api_key' => 'secret', // The API token
| ]
|
| * 'abstract_api' => [
| 'api_key' => 'secret', // The API token
| ]
|
| * 'open_exchange_rates' => [
| 'app_id' => 'secret', // Your app id
| 'enterprise' => true, // True if your AppId is an enterprise one
| ]
|
| * 'xignite' => [
| 'token' => 'secret', // The API token
| ]
|
| * 'currency_data_feed' => [
| 'api_key' => 'secret', // The API token
| ]
|
| * 'currency_converter' => [
| 'api_key' => 'access_key', // The API token
| 'enterprise' => true, // True if your AppId is an enterprise one
| ]
|
| * 'xchangeapi' => [
| 'api-key' => 'secret', // The API token
| ]
|
*/
'services' => [
'apilayer_fixer' => ['api_key' => 'Get your key here: https://fixer.io/'],
'apilayer_currency_data' => ['api_key' => 'Get your key here: https://currencylayer.com'],
'apilayer_exchange_rates_data' => ['api_key' => 'Get your key here: https://exchangeratesapi.io'],
],
/*
|--------------------------------------------------------------------------
| Cache
|--------------------------------------------------------------------------
|
| This option specifies the Laravel cache store to use.
|
| 'cache' => 'file'
*/
'cache' => null,
/*
|--------------------------------------------------------------------------
| Http Client.
|--------------------------------------------------------------------------
|
| The HTTP client service name to use.
*/
'http_client' => null,
/*
|--------------------------------------------------------------------------
| Request Factory.
|--------------------------------------------------------------------------
|
| The Request Factory service name to use.
*/
'request_factory' => null,
];