Importer for Firefly III to import transaction via FinTS
2.0K
Import your bank transactions into Firefly III using the FinTS protocol (used by most German banks).
What does this tool do?
You need PHP 8.5 or higher to run this tool.
Before you can run the importer, you need to generate a configuration file for your bank account. This will also create a state file to persist the FinTS session state (which is required to run the importer). Run the interactive setup wizard:
bin/console config:generate
You will be prompted for the following information:
https://fints.ing.de/fints/)The configuration file will be saved to the data/config/ directory.
You can verify that a configuration file is valid before running the importer:
bin/console config:validate data/config/mybank.json
bin/console import-transactions --config data/config/mybank.json
Run the application using the official Docker image:
docker run --rm -v data_directory:/app/data/ gared/firefly-iii-fints-console-importer bin/console import-transactions --config data/config/mybank.json
Or build the image manually:
docker build -f docker/Dockerfile -t firefly-fints-importer .
docker run --rm -v $(pwd)/data:/app/data firefly-fints-importer bin/console import-transactions --config data/config/mybank.json
Clone this repository and install dependencies:
git clone https://github.com/gared/firefly-iii-fints-console-importer.git
cd firefly-iii-fints-console-importer
composer install
Then run the importer:
bin/console import-transactions --config data/config/mybank.json
The configuration file is a JSON file located in data/config/. It is generated interactively via config:generate and contains the following fields:
| Field | Description |
|---|---|
bank_username | Your online banking username |
bank_password | Your online banking password |
bank_code | Bank code (BLZ) |
bank_url | FinTS API URL of your bank |
bank_2fa | TAN mode (e.g. NoPsd2TanMode or a specific TAN method ID) |
bank_2fa_device | TAN medium / device name (if required) |
firefly_url | URL of your Firefly III instance |
firefly_access_token | Personal access token for Firefly III |
choose_account_automation.bank_account_iban | IBAN of the bank account to import from |
choose_account_automation.firefly_account_id | ID of the Firefly III asset account to import into |
choose_account_automation.from | Start date for the import (e.g. now - 2 days) |
choose_account_automation.to | End date for the import (e.g. now) |
The config is fully compatible with https://github.com/bnw/firefly-iii-fints-importer, but doesn't use all config values.
| Command | Description |
|---|---|
config:generate | Interactively generate a new configuration file |
config:validate <file> | Validate an existing configuration file |
import-transactions --config <file> | Run the importer with the given configuration file |
Install all dependencies including dev dependencies:
composer install
Run the test suite:
vendor/bin/phpunit
Run static analysis:
vendor/bin/phpstan
Run code style fixer:
vendor/bin/php-cs-fixer fix
Content type
Image
Digest
sha256:999f8eee8…
Size
232.1 MB
Last updated
4 days ago
docker pull gared/firefly-iii-fints-console-importer