Skip to content

Commit 8555aea

Browse files
committed
v1.0.0 release
custom scope added 0 phpstan errors
1 parent 875623b commit 8555aea

8 files changed

+822
-541
lines changed

README.md

+81-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ fiobank-statement-downloader [save/to/directory] [format] [path/to/.env]
1212

1313
Example output when EASE_LOGGER=console
1414

15-
```
15+
```console
1616
01/16/2024 16:46:11 ⚙ ❲FioBank Statement Downloader⦒SpojeNet\FioApi\Downloader❳ FioBank Statement Downloader EaseCore dev-main (PHP 8.3.1)
1717
01/16/2024 16:46:12 🌼 ❲FioBank Statement Downloader⦒SpojeNet\FioApi\Downloader❳ Výpis z účtu FIO - 12/01/23 to 12/31/23: hlavni_fio-2023_12.pdf saved
1818
```
@@ -26,7 +26,6 @@ Please set this environment variables or specify path to .env file
2626
* `FIO_TOKEN_NAME`='Fio Main'
2727
* `ACCOUNT_NUMBER`=666666666
2828

29-
3029
* `APP_DEBUG`=True
3130
* `EASE_LOGGER`=syslog|eventlog|console
3231

@@ -52,8 +51,10 @@ Availble Import Scope Values
5251
* 'October'
5352
* 'November',
5453
* 'December'
54+
* `2024-08-05>2024-08-11` - custom scope
55+
* `2024-10-11` - only specific day
5556

56-
fiobank-transaction-mailer
57+
fiobank-statement-mailer
5758
--------------------------
5859

5960
![Mailer](fiobank-statement-mailer.svg?raw=true)
@@ -65,22 +66,96 @@ Share configuration with downloader and use few own keys:
6566
* `STATEMENTS_CC`
6667
* `EASE_SMTP` - optional json string `{"port": "587", "starttls": true, "auth": true, "host": "smtp.office365.com", "username": "@spojenet.cz", "password": "pw"}`
6768

68-
6969
fiobank-transaction-report
7070
--------------------------
7171

7272
![Report](fiobank-transaction-report.svg?raw=true)
7373

74-
7574
export fio transactions overview as json
7675

76+
```json
77+
{
78+
"source": "SpojeNet\\FioApi\\Downloader",
79+
"account": "4678357887",
80+
"in": {
81+
"26824841497": 605,
82+
"26824888581": 400,
83+
"26824925635": 400,
84+
"26824931682": 400,
85+
"26824932722": 639,
86+
"26824933226": 500,
87+
"26824934478": 500,
88+
"26824936675": 700,
89+
"26824937278": 400,
90+
"26824937528": 600,
91+
"26824961116": 400,
92+
"26824973216": 400,
93+
"26824973399": 400,
94+
"26825089436": 784,
95+
"26825089826": 190,
96+
"26825096119": 600,
97+
"26825100170": 500,
98+
"26825108688": 400,
99+
"26825326207": 530,
100+
"26825342736": 590,
101+
"26825354034": 400,
102+
"26825391533": 400,
103+
"26825421760": 500,
104+
"26825440250": 400,
105+
"26825445534": 500,
106+
"26825451244": 400,
107+
"26825485629": 400,
108+
"26825534661": 400,
109+
"26825535110": 400,
110+
"26825536273": 400,
111+
"26825711691": 2600,
112+
"26825737686": 400,
113+
"26825840759": 1742,
114+
"26825906082": 500,
115+
"26825921632": 6050,
116+
"26825965281": 1876,
117+
"26826064789": 300,
118+
"26826480759": 500,
119+
"26826623438": 400,
120+
"26826651980": 700
121+
},
122+
"out": {
123+
"26825356334": -22581
124+
},
125+
"in_total": 40,
126+
"out_total": 1,
127+
"in_sum_total": 29206,
128+
"out_sum_total": -22581,
129+
"from": "2024-12-11",
130+
"to": "2024-12-11",
131+
"iban": "CZ8545635664567300043347"
132+
}
133+
```
77134

78135
Created using the library [fio-api-php](https://github.com/mhujer/fio-api-php)
79136

80137
MultiFlexi
81138
----------
82139

83-
FioBank statement downloader is ready for run as [MultiFlexi](https://multiflexi.eu) application.
140+
FioBank statement tools is ready for run as [MultiFlexi](https://multiflexi.eu) application.
84141
See the full list of ready-to-run applications within the MultiFlexi platform on the [application list page](https://www.multiflexi.eu/apps.php).
85142

86143
[![MultiFlexi App](https://github.com/VitexSoftware/MultiFlexi/blob/main/doc/multiflexi-app.svg)](https://www.multiflexi.eu/apps.php)
144+
145+
Debian/Ubuntu
146+
-------------
147+
148+
For Linux, .deb packages are available. Please use the repo:
149+
150+
```shell
151+
echo "deb http://repo.vitexsoftware.com $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
152+
sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.cz/keyring.gpg
153+
sudo apt update
154+
sudo apt install fiobank statement tools
155+
```
156+
157+
After installing the package, the following new commands are available in the system:
158+
159+
* **fiobank-statement-downloader** - downloads statements from FioBank
160+
* **fiobank-statement-mailer** - downloads statements from FioBank and sends them by email
161+
* **fiobank-transaction-report** - exports transactions overview as json

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"bin": ["src/fiobank-statement-downloader.php"],
1818
"require": {
1919
"mhujer/fio-api-php": "dev-master",
20-
"vitexsoftware/ease-core": "dev-main"
20+
"vitexsoftware/ease-core": "^1.45"
2121
},
2222
"require-dev": {
2323
"phpunit/phpunit": "*",

0 commit comments

Comments
 (0)