Add bank files readers (OFX and QIF) #2115
Replies: 3 comments 1 reply
-
A part of me is thinking "yes", another part thinking that they aren't strictly spreadsheet formats, but that it is useful to be able to import them into a spreadsheet... that latter part is thinking that it would be more useful as a separate library with a dependency on PHPSpreadsheet, or an extension to PHPSpreadsheet. For that, I'd need to look at how practical it was to have a "secondary" library adding new Readers and/or Writers to the core. The latter may have some benefits in allowing users to choose which formats they might want to include through composer, rather than having all formats bundled in the main library. I'd certainly take a look if you submitted a PR (I'm also concerned with what changes you might have made to the core Spreadsheet itself); but won't make any guarantees about if and in what form it might be included. I'd also be interested in seeing how many other users might find it useful adding support for reading these formats |
Beta Was this translation helpful? Give feedback.
-
I thought that I'd run a Twitter poll to see if there was a significant number of people that would find this useful: |
Beta Was this translation helpful? Give feedback.
-
Thank you for answering. The poll result seems to indicate that bank formats are not very useful for most of the people (and I'm happy with that, they probably have more interesting things to play with!)
It's simple. My readers are not fully developed for all data of those formats, only the ones I need. For other reasons, I made few other changes.
Then in IOFactory, I also added the auto-detection of some encodings in load(), and the reader data:
Because I work with French files and without that, the encoding can be broke. I know this code is too specific to be used as is for all PHPSpreadsheet users, but perhaps something to work around. Lastly, I made changes in Worksheet->rangeToArray() to allow specific Date formats export. Else French dates are badly write into the array (we use DD/MM/YYYY and not MM/DD/YYYY)
If it can help ;) |
Beta Was this translation helpful? Give feedback.
-
Hi everyone,
Thank's a lot for this amazing and very useful library.
I needed to read files from bank accounts, with OFX and QIF formats. I wrote the readers according to the PhpSpreadsheet structure and added the extensions for automatic recognition and read.
It required changes in several PhpSpreadsheet files and I have to take care of all these changes when updating the library. I wonder if they can be included in the master code of the library.
I can give the code I made for that, if it helps.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions