2017 © Pedro Peláez
 

library mbank-mt940-parser

Parser for the mBank MT940 daily statement export file format.

image

ksdev/mbank-mt940-parser

Parser for the mBank MT940 daily statement export file format.

  • Sunday, July 5, 2015
  • by ksdev
  • Repository
  • 2 Watchers
  • 2 Stars
  • 4,705 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 14 % Grown

The README.md

mBank MT940 parser

Latest Version on Packagist Software License Build Status Coverage Status Quality Score, (*1)

Parser for the mBank MT940 daily statement export file format., (*2)

Install

Via Composer, (*3)

``` bash $ composer require ksdev/mbank-mt940-parser, (*4)


## Usage ``` php $parser = new Ksdev\Mt940Parser\Mt940Parser(); try { $statement = $parser->parse('path/to/MT940.txt'); } catch (Exception $e) { // }

Statement structure

``` php array( 0 => array( 'generationDate' => '071023', 'accountNumber' => '82114010100000579009005002', 'statementNumber' => '11', 'openingBalance' => array( 'balance' => 'D', 'date' => '071023', 'currency' => 'EUR', 'amount' => '959,45', ), 'transactions' => array( 0 => array( 'valueDate' => '071023', 'bookingDate' => '1023', 'balance' => 'C', 'currency' => 'EUR', 'amount' => '2,21', 'code' => 'TRF', 'description' => '973-MT PRZELEW NA RZECZ', 'details' => '973 IBRE PRZELEW WEWNĘTRZNY; Z RACH.: 46114010100000579009004001; OD: KLIENT TESTOWY SP. Z O.O. WARSZAWA, UL. SENATORSKA 18; TYT.: ZWROT NADPŁATY ZA F-RĘ 30/2006; TNR: 145411008036753.010002', ), 1 => array( 'valueDate' => '071023', 'bookingDate' => '1023', 'balance' => 'D', 'currency' => 'EUR', 'amount' => '16,36', 'code' => 'TRF', 'description' => '944-PRZEL.KRAJ.WYCH.MT.ELX', 'details' => '944 IBRE PRZELEW KRAJOWY; NA RACH.: 40106000760000390201994867; DLA: WYPOŻYCZALNIA PŁYT DVD PRZYGODA MONIUSZKI 7 56-328 BRONOWICE; TYT.: WYPOŻYCZENIE FILMÓW DVD; WALUTA: PLN; KWOTA: 86,20; KURS: 5,2691; TNR: 145410009337393.020001', ), 2 => array( 'valueDate' => '071023', 'bookingDate' => '1023', 'balance' => 'D', 'currency' => 'EUR', 'amount' => '1,27', 'code' => 'CHG', 'description' => '794-OPŁATY GRUPOWE', 'details' => '794 OPŁATY GRUPOWE; TNR: 145420004413026.000005', ), ), 'closingBalance' => array( 'balance' => 'D', 'date' => '071023', 'currency' => 'EUR', 'amount' => '974.87', ), 'availableBalance' => array( 'balance' => 'D', 'date' => '071023', 'currency' => 'EUR', 'amount' => '974.87', ), ), 1 => array(...) );, (*5)


## Testing ``` bash $ phpunit

Caution :warning:

Analyze the code thoroughly before you use it and adjust it to your needs - this project was made for private use., (*6)

License

The MIT License (MIT). Please see License File for more information., (*7)

The Versions

05/07 2015

dev-master

9999999-dev https://github.com/ksdev-pl/mbank-mt940-parser

Parser for the mBank MT940 daily statement export file format.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

ksdev mbank-mt940-parser

05/07 2015

0.1.0

0.1.0.0 https://github.com/ksdev-pl/mbank-mt940-parser

Parser for the mBank MT940 daily statement export file format.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

The Development Requires

ksdev mbank-mt940-parser