mestrona / mbank
Download Banking Transactions and Write them to a Database
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Type:project
pkg:composer/mestrona/mbank
Requires
- mestrona/aqbanking-php: ^3.0.0
This package is not auto-updated.
Last update: 2025-10-27 22:54:16 UTC
README
Simple Transaction fetcher by Mestrona GbR.
Works with AqBanking to fetch bank transactions via HBCI and save them to database table.
Installation
- Clone the git repository
- Install AqBanking for your operating system (Debian/Ubuntu: apt install aqbanking-tools)
- Install composer (if not yet done)
- run composer install
- Install the database schema from schema.sqlandschema_update_1.sql
Usage
- 
Copy config/accounts.template.php to config/accounts.php and fill info (database info + account data) 
- 
Call php mbank defaultto fetch the recent transactions for the default account. You can configure as many accounts as you like. Callphp mbank --allto fetch recent transaction for all configured accounts.
- 
If the tan mode is wrong, you can find out the valid ones by calling aqhbci-tool4 listitanmodes --user=1
Debugging
After initializing, try manually
export BIC=  # Enter bank code here
export ACCOUNT=  # Enter account code here
aqbanking-cli --acceptvalidcerts request --bank=$BIC --account=$ACCOUNT --ctxfile=.storage/aqBanking.ctx --balance --transactions
aqbanking-cli --acceptvalidcerts getaccounts--bank=$BIC --account=$ACCOUNT
aqbanking-cli --acceptvalidcerts listaccounts --bank=$BIC --account=$ACCOUNT 
License
MIT