I wrote this script to create a CSV from a .gnucash (XML, gzipped) file. The GNUCash File > Export
csv was not to my liking.
- Clone this repo
composer install
- Save your compressed, XML format GnuCash file as
firefly_gz.gnucash
in this cloned repo's root - Change your php.ini
memory_limit
to be 2 GB or more. - Open a terminal in this projects folder and execute
php ./src/start.php
- Get some coffee
- Import the CSV file into firefly-iii (column 0 is a unique ID)
- Manually import splits from
txt.json
. (I usedPrettier
in VS Code to make the output look nice.)
MIT
Carsten Brandt - for his unfinished, WIP GnuCash PHP XML parser. I edited his work to be compatible with my GnuCash 4.4 document.