Download the PHP package kingsquare/php-mt940 without Composer
On this page you can find all versions of the php package kingsquare/php-mt940. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kingsquare/php-mt940
More information about kingsquare/php-mt940
Files in kingsquare/php-mt940
Package php-mt940
Short Description Simple MT940 parser in PHP
License MIT
Homepage https://github.com/fruitl00p/php-mt940
Informations about the package php-mt940
php-mt940?
The php-mt940 package provides a lightweight parser for MT940 format which is used by SWIFT. The output is transformed into easy to use dataclasses Transaction_banking which itself contains Statement_banking objects. Pretty straight forward.
Requirements
- At least PHP 7
Installation
If composer is not yet on your system, follow the instructions on getcomposer.org to do so.
To add this dependency to your project, simply run the following command from the root of your project:
This ensures that you install the latest stable release.
How to use the parser?
I've attached a simple script in the examples directory to explain it a bit more in detail, but after loading the required classes, the usage should be pretty simple:
Included engines
Currently the following engines are included:
- ABNAMRO (here)
- ING (here)
- KNAB (here)
- RABOBANK (here)
- SPARKASSE (here)
- TRIODOS (here)
- HSBC (here)
- SNS (here) Experimental
- BUNQ (here)
- PENTA (here)
- ASN (here)
- KBS (here)
- ZETB (here)
- KONTIST (here)
- a default
UNKNOWN
-engine (here)
Custom engines
To override engines or just try a one-off engine on a file, you can pass an engine into the parse
-method:
Known issues
I've provided unittests but please take a look at the github issue tracker for the latest ideas's, issues or other stuff..
Future plans
I do intend to add new engines or keep everything running smoothly, but since i don't have access to any more test files, it's hard to add new engines ;) The unknown
engine should work or atleast give some idea as to where different banks diverge from the standard. If you do have any ideas, examples or new banks that you'd like to see incorporated, please don't hesitate and send me an issue / pullrequest!
Contact
This is GitHub, you know where to find me :)
License
PHP-MT940 is licensed under the MIT License - see the LICENSE file for details
All versions of php-mt940 with dependencies
ext-json Version *